diff --git a/bitnami/postgresql-repmgr/12/debian-11/Dockerfile b/bitnami/postgresql-repmgr/12/debian-11/Dockerfile index c905100936c7..c388439711ed 100644 --- a/bitnami/postgresql-repmgr/12/debian-11/Dockerfile +++ b/bitnami/postgresql-repmgr/12/debian-11/Dockerfile @@ -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." \ diff --git a/bitnami/postgresql-repmgr/12/debian-11/prebuildfs/opt/bitnami/scripts/libversion.sh b/bitnami/postgresql-repmgr/12/debian-11/prebuildfs/opt/bitnami/scripts/libversion.sh index f3bc7568bfa5..ad2f0eee48df 100644 --- a/bitnami/postgresql-repmgr/12/debian-11/prebuildfs/opt/bitnami/scripts/libversion.sh +++ b/bitnami/postgresql-repmgr/12/debian-11/prebuildfs/opt/bitnami/scripts/libversion.sh @@ -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++)) diff --git a/bitnami/postgresql-repmgr/12/debian-11/rootfs/events/execs/includes/lock_standby.sh b/bitnami/postgresql-repmgr/12/debian-11/rootfs/events/execs/includes/lock_standby.sh index 641c19883b91..5d9fe6c897fc 100755 --- a/bitnami/postgresql-repmgr/12/debian-11/rootfs/events/execs/includes/lock_standby.sh +++ b/bitnami/postgresql-repmgr/12/debian-11/rootfs/events/execs/includes/lock_standby.sh @@ -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)..." diff --git a/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/libpostgresql.sh b/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/libpostgresql.sh index 7285579c890a..347d506b6e42 100644 --- a/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/libpostgresql.sh +++ b/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/libpostgresql.sh @@ -997,6 +997,8 @@ postgresql_remove_pghba_lines() { done } +# shellcheck disable=SC2148 + ######################## # Return PostgreSQL major version # Globals: diff --git a/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh b/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh index a95170502085..9afe338e4745 100755 --- a/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh +++ b/bitnami/postgresql-repmgr/12/debian-11/rootfs/opt/bitnami/scripts/postgresql-repmgr/run.sh @@ -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