Skip to content

Commit ad6fef4

Browse files
committed
Fix REDISCLI_AUTH
Signed-off-by: Miguel Ruiz <[email protected]>
1 parent 3312aed commit ad6fef4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bitnami/redis-cluster/templates/scripts-configmap.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ data:
2020
REDIS_STATUS_FILE=/tmp/.redis_cluster_check
2121
2222
{{- if .Values.usePassword }}
23-
export REDISCLI_AUTH={{ ternary "$(< $REDIS_PASSWORD_FILE)" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
23+
export REDISCLI_AUTH={{ ternary "`cat $REDIS_PASSWORD_FILE`" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
2424
{{- end }}
2525
response=$(
2626
timeout -s 15 $1 \
@@ -79,7 +79,7 @@ data:
7979
set -e
8080
8181
{{- if .Values.usePassword }}
82-
export REDISCLI_AUTH={{ ternary "$(< $REDIS_PASSWORD_FILE)" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
82+
export REDISCLI_AUTH={{ ternary "`cat $REDIS_PASSWORD_FILE`" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
8383
{{- end }}
8484
response=$(
8585
timeout -s 15 $1 \

bitnami/redis-cluster/templates/update-cluster.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ spec:
8181
. /opt/bitnami/scripts/libos.sh
8282
8383
{{- if .Values.usePassword }}
84-
export REDISCLI_AUTH={{ ternary "$(< $REDIS_PASSWORD_FILE)" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
84+
export REDISCLI_AUTH={{ ternary "`cat $REDIS_PASSWORD_FILE`" "$REDIS_PASSWORD" .Values.usePasswordFiles }}
8585
{{- end }}
8686
# Backwards compatibility change
8787
if ! [[ -f /opt/bitnami/redis/etc/redis.conf ]]; then

0 commit comments

Comments
 (0)