Enable password protection for Redis

This commit is contained in:
FreddleSpl0it committed 2024-11-19 14:25:31 +01:00
1 parent 326a446f8b
commit 89fb1322c6
34 files changed
+111 -63

No files matched your search

@@ -14,9 +14,9 @@ done
# Do not attempt to write to slave
if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT}"
REDIS_CMDLINE="redis-cli -h ${REDIS_SLAVEOF_IP} -p ${REDIS_SLAVEOF_PORT} -a ${REDISPASS}"
else
REDIS_CMDLINE="redis-cli -h redis -p 6379"
REDIS_CMDLINE="redis-cli -h redis -p 6379 -a ${REDISPASS}"
fi
until [[ $(${REDIS_CMDLINE} PING) == "PONG" ]]; do