redis: replace inline argument with environment variable for the password

This commit is contained in:
Jérémy Lecour 2024-04-12 15:54:20 +02:00 committed by Jérémy Lecour
parent 5708e7205d
commit 2a264dd2bc
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 2 additions and 1 deletions

View file

@ -30,6 +30,7 @@ The **patch** part is incremented if multiple releases happen the same month
* fail2ban: SQLite purge script didn't vacuum as expected + error when vacuum cannot be done
* nagios-nrpe: create /etc/bash_completion.d if missing
* packweb: fix old bug (2017!) .orig file created by module patch and taken in account by ProFTPd
* redis: replace inline argument with environment variable for the password
### Removed

View file

@ -104,7 +104,7 @@ redis_cli_args=''
sentinel_port=$(awk '/^port/{print $2}' "${sentinel_config_file}")
! test -z "$sentinel_port" && redis_cli_args="${redis_cli_args} -p ${sentinel_port}"
sentinel_pass=$(awk '/^requirepass/{print $2}' "${sentinel_config_file}")
! test -z "$sentinel_pass" && redis_cli_args="${redis_cli_args} --pass ${sentinel_pass}"
! test -z "$sentinel_pass" && export REDISCLI_AUTH="${sentinel_pass}"
alias _redis-cli="redis-cli ${redis_cli_args}"
# List all masters names known by sentinel