redis: replace inline argument with environment variable for the password
This commit is contained in:
parent
5708e7205d
commit
2a264dd2bc
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue