From bc018cd14d348e00b811d3ed35b7010edb9ca085 Mon Sep 17 00:00:00 2001 From: linosgian Date: Fri, 24 Mar 2023 14:02:56 +0200 Subject: [PATCH] [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 --- .../1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh index 83c349698345..bb598d5a0da3 100644 --- a/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh +++ b/bitnami/pgbouncer/1/debian-11/rootfs/opt/bitnami/scripts/pgbouncer-env.sh @@ -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"