From c8e517b8f3b16fb24516052592a93d6b9a7c123f Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 17 Dec 2020 02:09:09 +0000 Subject: [PATCH] 9.6.20-debian-10-r37 release --- bitnami/postgresql-repmgr/9.6/debian-10/Dockerfile | 2 +- .../9.6/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh | 6 ++++-- bitnami/postgresql-repmgr/README.md | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bitnami/postgresql-repmgr/9.6/debian-10/Dockerfile b/bitnami/postgresql-repmgr/9.6/debian-10/Dockerfile index 55191e7db7b8..d8a87917e447 100644 --- a/bitnami/postgresql-repmgr/9.6/debian-10/Dockerfile +++ b/bitnami/postgresql-repmgr/9.6/debian-10/Dockerfile @@ -24,7 +24,7 @@ COPY rootfs / RUN /opt/bitnami/scripts/postgresql-repmgr/postunpack.sh RUN /opt/bitnami/scripts/locales/add-extra-locales.sh ENV BITNAMI_APP_NAME="postgresql-repmgr" \ - BITNAMI_IMAGE_VERSION="9.6.20-debian-10-r36" \ + BITNAMI_IMAGE_VERSION="9.6.20-debian-10-r37" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \ diff --git a/bitnami/postgresql-repmgr/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh b/bitnami/postgresql-repmgr/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh index d658d7607277..4391dacc7853 100644 --- a/bitnami/postgresql-repmgr/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh +++ b/bitnami/postgresql-repmgr/9.6/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh @@ -10,15 +10,17 @@ # Functions ######################## -# Resolve dns +# Resolve IP address for a host/domain (i.e. DNS lookup) # Arguments: # $1 - Hostname to resolve +# $2 - IP address version (v4, v6), leave empty for resolving to any version # Returns: # IP ######################### dns_lookup() { local host="${1:?host is missing}" - getent ahosts "$host" | awk '/STREAM/ {print $1 }' + local ip_version="${2:-}" + getent "ahosts${ip_version}" "$host" | awk '/STREAM/ {print $1 }' | head -n 1 } ######################### diff --git a/bitnami/postgresql-repmgr/README.md b/bitnami/postgresql-repmgr/README.md index 804dcfa303da..2646bb5a1dca 100644 --- a/bitnami/postgresql-repmgr/README.md +++ b/bitnami/postgresql-repmgr/README.md @@ -47,7 +47,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`12`, `12-debian-10`, `12.5.0`, `12.5.0-debian-10-r37` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.5.0-debian-10-r37/12/debian-10/Dockerfile) * [`11`, `11-debian-10`, `11.10.0`, `11.10.0-debian-10-r36`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/11.10.0-debian-10-r36/11/debian-10/Dockerfile) * [`10`, `10-debian-10`, `10.15.0`, `10.15.0-debian-10-r35` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/10.15.0-debian-10-r35/10/debian-10/Dockerfile) -* [`9.6`, `9.6-debian-10`, `9.6.20`, `9.6.20-debian-10-r36` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/9.6.20-debian-10-r36/9.6/debian-10/Dockerfile) +* [`9.6`, `9.6-debian-10`, `9.6.20`, `9.6.20-debian-10-r37` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/9.6.20-debian-10-r37/9.6/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/postgresql-repmgr GitHub repo](https://github.com/bitnami/bitnami-docker-postgresql-repmgr).