docker/redis/standalone/4.0.10/start.sh
2019-01-01 22:14:50 +08:00

13 lines
233 B
Bash

#!/bin/bash
if [ ! -e /redis/conf/redis.conf ]; then
cp /usr/local/bin/redis.conf /redis/conf
if [ -n "$PASSWORD" ]; then
echo "requirepass $PASSWORD" >> /redis/conf/redis.conf
fi
fi
redis-server /redis/conf/redis.conf