[bitnami/postgresql-repmgr] Release 12.13.0-debian-11-r21 (#19828)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2023-01-11 12:22:40 +01:00 committed by GitHub
parent a41e4a3e98
commit 2ed2c51500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View File

@ -4,7 +4,7 @@ ARG TARGETARCH
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
org.opencontainers.image.description="Application packaged by Bitnami" \
org.opencontainers.image.ref.name="12.13.0-debian-11-r20" \
org.opencontainers.image.ref.name="12.13.0-debian-11-r21" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/postgresql-repmgr" \
org.opencontainers.image.title="postgresql-repmgr" \
org.opencontainers.image.vendor="VMware, Inc." \

View File

@ -31,7 +31,7 @@ get_sematic_version () {
while [[ $i -lt $n ]]; do
if [[ -n "${BASH_REMATCH[$i]}" ]] && [[ "${BASH_REMATCH[$i]:0:1}" != '.' ]]; then
version_sections[$j]=${BASH_REMATCH[$i]}
version_sections[j]="${BASH_REMATCH[$i]}"
((j++))
fi
((i++))

View File

@ -5,8 +5,8 @@ set -o nounset
set -o pipefail
# set -o xtrace # Uncomment this line for debugging purposes
readonly query="SELECT upstream_node_id FROM repmgr.nodes WHERE node_id=$(repmgr_get_node_id)"
readonly new_upstream_node_id="$(echo "$query" | BITNAMI_DEBUG=true postgresql_execute "$REPMGR_DATABASE" "$POSTGRESQL_REPLICATION_USER" "$POSTGRESQL_REPLICATION_PASSWORD" "" "" "-tA")"
query="SELECT upstream_node_id FROM repmgr.nodes WHERE node_id=$(repmgr_get_node_id)"
new_upstream_node_id="$(echo "$query" | BITNAMI_DEBUG=true postgresql_execute "$REPMGR_DATABASE" "$POSTGRESQL_REPLICATION_USER" "$POSTGRESQL_REPLICATION_PASSWORD" "" "" "-tA")"
if [[ -n "$new_upstream_node_id" ]]; then
# shellcheck disable=SC2154
echo "$header Locking standby (new_upstream_node_id=$new_upstream_node_id)..."

View File

@ -997,6 +997,8 @@ postgresql_remove_pghba_lines() {
done
}
# shellcheck disable=SC2148
########################
# Return PostgreSQL major version
# Globals:

View File

@ -16,6 +16,7 @@ set -o pipefail
. /opt/bitnami/scripts/postgresql-env.sh
readonly repmgr_flags=("-f" "$REPMGR_CONF_FILE" "--daemonize=false")
# shellcheck disable=SC2155
readonly repmgr_cmd=$(command -v repmgrd)
postgresql_start_bg true