From c53cb619eb4d833f4f37b297f2fe3340c42a3944 Mon Sep 17 00:00:00 2001 From: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com> Date: Mon, 2 Oct 2023 17:12:07 +0530 Subject: [PATCH] fix env change (#56) * fix env change Signed-off-by: Shubham Gupta * fix Signed-off-by: Shubham Gupta * fix Signed-off-by: Shubham Gupta --------- Signed-off-by: Shubham Gupta --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0d33884..4f5131d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -107,7 +107,8 @@ start_redis() { if [[ "${SETUP_MODE}" == "cluster" ]]; then echo "Starting redis service in cluster mode....." if [[ "${NODEPORT}" == "true" ]]; then - CLUSTER_ANNOUNCE_IP="${!node-ip-$(hostname)}" + CLUSTER_ANNOUNCE_IP_VAR="node_ip_$(hostname | tr '-' '_')" + CLUSTER_ANNOUNCE_IP="${!CLUSTER_ANNOUNCE_IP_VAR}" else CLUSTER_ANNOUNCE_IP="${POD_IP}" fi