diff --git a/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh b/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh index 9e2a51d67024c..99b3a2263c823 100644 --- a/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh +++ b/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-env.sh @@ -229,6 +229,8 @@ export POSTGRESQL_PGHBA_FILE="$POSTGRESQL_CONF_DIR/pg_hba.conf" export POSTGRESQL_RECOVERY_FILE="$POSTGRESQL_DATA_DIR/recovery.conf" export POSTGRESQL_LOG_DIR="$POSTGRESQL_BASE_DIR/logs" export POSTGRESQL_LOG_FILE="$POSTGRESQL_LOG_DIR/postgresql.log" +export POSTGRESQL_LOG_CSV_FILE="$POSTGRESQL_LOG_DIR/postgresql.csv" +export POSTGRESQL_LOG_JSON_FILE="$POSTGRESQL_LOG_DIR/postgresql.json" export POSTGRESQL_TMP_DIR="$POSTGRESQL_BASE_DIR/tmp" export POSTGRESQL_PID_FILE="$POSTGRESQL_TMP_DIR/postgresql.pid" export POSTGRESQL_BIN_DIR="$POSTGRESQL_BASE_DIR/bin" diff --git a/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-repmgr/postunpack.sh b/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-repmgr/postunpack.sh index 803fa1f0d8ae4..30f211a13d3b0 100755 --- a/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-repmgr/postunpack.sh +++ b/bitnami/postgresql-repmgr/17/debian-12/rootfs/opt/bitnami/scripts/postgresql-repmgr/postunpack.sh @@ -25,8 +25,9 @@ chmod +x "$REPMGR_EVENTS_DIR"/router.sh "$REPMGR_EVENTS_DIR"/execs/*sh "$REPMGR_ # Redirect all logging to stdout ln -sf /dev/stdout "$POSTGRESQL_LOG_FILE" +ln -sf /dev/stdout "$POSTGRESQL_LOG_CSV_FILE" +ln -sf /dev/stdout "$POSTGRESQL_LOG_JSON_FILE" # Copy all initially generated configuration files to the default directory # (this is to avoid breaking when entrypoint is being overridden) cp -r "${POSTGRESQL_CONF_DIR}/"* "$POSTGRESQL_DEFAULT_CONF_DIR" -