Skip to content

Commit

Permalink
remove v7 check (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk authored Sep 29, 2023
1 parent 65db15f commit 80c5be7
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,10 @@ start_redis() {
CLUSTER_ANNOUNCE_IP="${POD_IP}"
fi

if [[ "${REDIS_MAJOR_VERSION}" != "v7" ]]; then
redis-server /etc/redis/redis.conf \
--cluster-announce-ip "${CLUSTER_ANNOUNCE_IP}" \
--cluster-announce-hostname "${POD_HOSTNAME}"
else
redis-server /etc/redis/redis.conf
fi
redis-server /etc/redis/redis.conf \
--cluster-announce-ip "${CLUSTER_ANNOUNCE_IP}" \
--cluster-announce-hostname "${POD_HOSTNAME}"

else
echo "Starting redis service in standalone mode....."
redis-server /etc/redis/redis.conf
Expand Down

0 comments on commit 80c5be7

Please sign in to comment.