Skip to content

Commit

Permalink
Merge pull request #528 from pych/fix-526
Browse files Browse the repository at this point in the history
Add an export for password with REDISCLI_AUTH
  • Loading branch information
ese authored Nov 24, 2022
2 parents 5c797e6 + bf11a76 commit 716d0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ if [ "$master" = "$(hostname -i)" ]; then
fi
cmd="redis-cli -p %[2]v"
if [ ! -z "${REDIS_PASSWORD}" ]; then
cmd="${cmd} --no-auth-warning -a \"${REDIS_PASSWORD}\""
export REDISCLI_AUTH=${REDIS_PASSWORD}
fi
save_command="${cmd} save"
eval $save_command`, rfName, port)
Expand Down Expand Up @@ -219,7 +219,7 @@ NO_MASTER="master_host:127.0.0.1"
cmd="redis-cli -p %[1]v"
if [ ! -z "${REDIS_PASSWORD}" ]; then
cmd="${cmd} --no-auth-warning -a \"${REDIS_PASSWORD}\""
export REDISCLI_AUTH=${REDIS_PASSWORD}
fi
cmd="${cmd} info replication"
Expand Down

0 comments on commit 716d0d6

Please sign in to comment.