Skip to content

Commit

Permalink
fix: support redis replication has pass
Browse files Browse the repository at this point in the history
Signed-off-by: wanggangfeng <[email protected]>
  • Loading branch information
wanggangfeng committed Dec 12, 2023
1 parent b2b4306 commit 10471bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint-sentinel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
Expand Down

0 comments on commit 10471bf

Please sign in to comment.