[bitnami/pgbouncer] Allow override of PGBOUNCER_LOG_FILE (#24336)
As per PgBouncer's [docs](https://www.pgbouncer.org/config.html#generic-settings) in order to disable logging to a file, one should leave `logfile` unset (or set to an empty string). That option is set to `$PGBOUNCER_LOG_DIR/pgbouncer.log` without any way to override it through env vars. This commit falls back to the old default value, unless `PGBOUNCER_LOG_FILE` is explicitly set. Signed-off-by: Linos Giannopoulos <lgian@element.io>
This commit is contained in:
parent
857e9b8a46
commit
bc018cd14d
|
|
@ -99,7 +99,7 @@ export PGBOUNCER_BASE_DIR="${BITNAMI_ROOT_DIR}/pgbouncer"
|
|||
export PGBOUNCER_CONF_DIR="${PGBOUNCER_BASE_DIR}/conf"
|
||||
export PGBOUNCER_LOG_DIR="${PGBOUNCER_BASE_DIR}/logs"
|
||||
export PGBOUNCER_TMP_DIR="${PGBOUNCER_BASE_DIR}/tmp"
|
||||
export PGBOUNCER_LOG_FILE="${PGBOUNCER_LOG_DIR}/pgbouncer.log"
|
||||
export PGBOUNCER_LOG_FILE="${PGBOUNCER_LOG_FILE:-$PGBOUNCER_LOG_DIR/pgbouncer.log}"
|
||||
export PGBOUNCER_PID_FILE="${PGBOUNCER_TMP_DIR}/pgbouncer.pid"
|
||||
export PGBOUNCER_CONF_FILE="${PGBOUNCER_CONF_DIR}/pgbouncer.ini"
|
||||
export PGBOUNCER_AUTH_FILE="${PGBOUNCER_CONF_DIR}/userlist.txt"
|
||||
|
|
|
|||
Loading…
Reference in New Issue