Skip to content

Commit

Permalink
Update entrypoint-sentinel.sh
Browse files Browse the repository at this point in the history
add SENTINEL_ID

Signed-off-by: Ivan <[email protected]>
  • Loading branch information
iva3682 authored and Ivan committed Sep 19, 2024
1 parent b369411 commit b47023e
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 @@ -24,6 +24,9 @@ sentinel_mode_setup(){
if [[ -n "${MASTER_PASSWORD}" ]];then
echo "sentinel auth-pass ${MASTER_GROUP_NAME} ${MASTER_PASSWORD}"
fi
if [[ -n "${SENTINEL_ID}" ]];then
(echo -n "sentinel myid "; echo ${SENTINEL_ID} | sha1sum | awk '{ print $1 }')
fi
}>> /etc/redis/sentinel.conf

}
Expand Down

0 comments on commit b47023e

Please sign in to comment.