diff --git a/entrypoint-sentinel.sh b/entrypoint-sentinel.sh index 43a971b..446ae32 100755 --- a/entrypoint-sentinel.sh +++ b/entrypoint-sentinel.sh @@ -25,7 +25,7 @@ sentinel_mode_setup(){ 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 }") + (echo -n "sentinel myid "; echo "${SENTINEL_ID}" | sha1sum | awk '{ print $1 }') fi }>> /etc/redis/sentinel.conf