[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:
linosgian 2023-03-24 14:02:56 +02:00 committed by GitHub
parent 857e9b8a46
commit bc018cd14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"