From 6db8e2e9dd2f714e62a85d8a5067550191ab8f7f Mon Sep 17 00:00:00 2001 From: elrond Date: Mon, 18 Dec 2023 09:46:36 +0800 Subject: [PATCH] fix: support redis replication has pass (#63) Signed-off-by: wanggangfeng Co-authored-by: wanggangfeng --- entrypoint-sentinel.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entrypoint-sentinel.sh b/entrypoint-sentinel.sh index faab253..8d8c55d 100755 --- a/entrypoint-sentinel.sh +++ b/entrypoint-sentinel.sh @@ -21,6 +21,9 @@ sentinel_mode_setup(){ echo "sentinel down-after-milliseconds ${MASTER_GROUP_NAME} ${DOWN_AFTER_MILLISECONDS}" echo "sentinel parallel-syncs ${MASTER_GROUP_NAME} ${PARALLEL_SYNCS}" echo "sentinel failover-timeout ${MASTER_GROUP_NAME} ${FAILOVER_TIMEOUT}" + if [[ -n "${MASTER_PASSWORD}" ]];then + echo "sentinel auth-pass ${MASTER_GROUP_NAME} ${MASTER_PASSWORD}" + fi }>> /etc/redis/sentinel.conf }