[bitnami/redis] - Include overrides config once only (#15986)
Redis - Include overrides config once only Fixes issue where ACL in overrides file would result in an error: Duplicate user found. A user can only be defined once in config files Signed-off-by: Philippe Trepanier <philippetrepanier@users.noreply.github.com>
This commit is contained in:
parent
565ff7197e
commit
462dcbf27f
|
|
@ -361,6 +361,10 @@ redis_initialize() {
|
|||
#########################
|
||||
redis_append_include_conf() {
|
||||
if [[ -f "$REDIS_OVERRIDES_FILE" ]]; then
|
||||
# Remove all include statements including commented ones
|
||||
redis_conf_set include "$REDIS_OVERRIDES_FILE"
|
||||
redis_conf_unset "include"
|
||||
|
||||
echo "include $REDIS_OVERRIDES_FILE" >> "${REDIS_BASE_DIR}/etc/redis.conf"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,6 +361,10 @@ redis_initialize() {
|
|||
#########################
|
||||
redis_append_include_conf() {
|
||||
if [[ -f "$REDIS_OVERRIDES_FILE" ]]; then
|
||||
# Remove all include statements including commented ones
|
||||
redis_conf_set include "$REDIS_OVERRIDES_FILE"
|
||||
redis_conf_unset "include"
|
||||
|
||||
echo "include $REDIS_OVERRIDES_FILE" >> "${REDIS_BASE_DIR}/etc/redis.conf"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,6 +361,10 @@ redis_initialize() {
|
|||
#########################
|
||||
redis_append_include_conf() {
|
||||
if [[ -f "$REDIS_OVERRIDES_FILE" ]]; then
|
||||
# Remove all include statements including commented ones
|
||||
redis_conf_set include "$REDIS_OVERRIDES_FILE"
|
||||
redis_conf_unset "include"
|
||||
|
||||
echo "include $REDIS_OVERRIDES_FILE" >> "${REDIS_BASE_DIR}/etc/redis.conf"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,6 +361,10 @@ redis_initialize() {
|
|||
#########################
|
||||
redis_append_include_conf() {
|
||||
if [[ -f "$REDIS_OVERRIDES_FILE" ]]; then
|
||||
# Remove all include statements including commented ones
|
||||
redis_conf_set include "$REDIS_OVERRIDES_FILE"
|
||||
redis_conf_unset "include"
|
||||
|
||||
echo "include $REDIS_OVERRIDES_FILE" >> "${REDIS_BASE_DIR}/etc/redis.conf"
|
||||
fi
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue