From 2db8cb83799cefedfe1360128c12d45afde4b091 Mon Sep 17 00:00:00 2001 From: xtianus79 Date: Mon, 27 Nov 2023 01:33:03 -0500 Subject: [PATCH] Update librepmgr.sh This fixes the issues of the not found postgresql.conf file in the pg data directory. The actual file name there is postgresql.auto.conf. Signed-off-by: xtianus79 --- .../16/debian-11/rootfs/opt/bitnami/scripts/librepmgr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitnami/postgresql-repmgr/16/debian-11/rootfs/opt/bitnami/scripts/librepmgr.sh b/bitnami/postgresql-repmgr/16/debian-11/rootfs/opt/bitnami/scripts/librepmgr.sh index f6c21757434ca..b2fc047fcf66d 100644 --- a/bitnami/postgresql-repmgr/16/debian-11/rootfs/opt/bitnami/scripts/librepmgr.sh +++ b/bitnami/postgresql-repmgr/16/debian-11/rootfs/opt/bitnami/scripts/librepmgr.sh @@ -641,7 +641,7 @@ repmgr_clone_primary() { ######################### repmgr_pgrewind() { info "Running pg_rewind data to primary node..." - local -r flags=("-D" "$POSTGRESQL_DATA_DIR" "--source-server" "host=${REPMGR_CURRENT_PRIMARY_HOST} port=${REPMGR_CURRENT_PRIMARY_PORT} user=${REPMGR_USERNAME} dbname=${REPMGR_DATABASE}") + local -r flags=("-D" "$POSTGRESQL_DATA_DIR" "--source-server" "host=${REPMGR_CURRENT_PRIMARY_HOST} port=${REPMGR_CURRENT_PRIMARY_PORT} user=${REPMGR_USERNAME} dbname=${REPMGR_DATABASE}" "--config-file=postgresql.auto.conf") if [[ "$REPMGR_USE_PASSFILE" = "true" ]]; then PGPASSFILE="$REPMGR_PASSFILE_PATH" debug_execute "${POSTGRESQL_BIN_DIR}/pg_rewind" "${flags[@]}"