[bitnami/postgresql-repmgr] Release 14.12.0-debian-12-r18 (#70487)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2024-08-01 14:51:10 +02:00 committed by GitHub
parent 57099a12b8
commit dd07f3b6d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -7,11 +7,11 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2024-07-29T17:02:15Z" \
org.opencontainers.image.created="2024-08-01T12:14:05Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr/README.md" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.ref.name="14.12.0-debian-12-r17" \
org.opencontainers.image.ref.name="14.12.0-debian-12-r18" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr" \
org.opencontainers.image.title="postgresql-repmgr" \
org.opencontainers.image.vendor="Broadcom, Inc." \

View File

@ -237,8 +237,12 @@ repmgr_get_primary_node() {
primary_port="$REPMGR_PRIMARY_PORT"
fi
else
primary_host="$upstream_host"
primary_port="$upstream_port"
if [[ "${upstream_host}:${upstream_port}" = "${REPMGR_NODE_NETWORK_NAME}:${REPMGR_PORT_NUMBER}" ]]; then
info "Avoid setting itself as primary. Starting PostgreSQL normally..."
else
primary_host="$upstream_host"
primary_port="$upstream_port"
fi
fi
fi