Skip to content

Commit

Permalink
fix env change (#56)
Browse files Browse the repository at this point in the history
* fix env change

Signed-off-by: Shubham Gupta <[email protected]>

* fix

Signed-off-by: Shubham Gupta <[email protected]>

* fix

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk authored Oct 2, 2023
1 parent c5ed455 commit c53cb61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c53cb61

Please sign in to comment.