diff --git a/bitnami/postgresql-repmgr/12/debian-10/Dockerfile b/bitnami/postgresql-repmgr/12/debian-10/Dockerfile index fec075902ab8..158c652bc257 100644 --- a/bitnami/postgresql-repmgr/12/debian-10/Dockerfile +++ b/bitnami/postgresql-repmgr/12/debian-10/Dockerfile @@ -10,7 +10,7 @@ COPY prebuildfs / # Install required system packages and dependencies RUN install_packages acl ca-certificates curl gzip libbsd0 libc6 libedit2 libffi6 libgcc1 libgmp10 libgnutls30 libhogweed4 libicu63 libidn2-0 libldap-2.4-2 liblzma5 libnettle6 libp11-kit0 libpcre3 libreadline7 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 locales procps tar zlib1g RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "postgresql-repmgr" "12.7.0-3" --checksum 4e8c772a1141215db084fd3648d577815ef55626f45fd9d07884a5475e5c659c -RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.12.0-2" --checksum 4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50 +RUN . /opt/bitnami/scripts/libcomponent.sh && component_unpack "gosu" "1.13.0-0" --checksum fd7257c2736164d02832dbf72e2c1ed9d875bf3e32f0988520796bc503330129 RUN chmod g+rwX /opt/bitnami RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 RUN update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX && \ @@ -22,7 +22,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="12.7.0-debian-10-r21" \ + BITNAMI_IMAGE_VERSION="12.7.0-debian-10-r22" \ 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/12/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/postgresql-repmgr/12/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json index 57d48137c6cb..c652a21d2c8a 100644 --- a/bitnami/postgresql-repmgr/12/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/postgresql-repmgr/12/debian-10/prebuildfs/opt/bitnami/.bitnami_components.json @@ -1,10 +1,10 @@ { "gosu": { "arch": "amd64", - "digest": "4d858ac600c38af8de454c27b7f65c0074ec3069880cb16d259a6e40a46bbc50", + "digest": "fd7257c2736164d02832dbf72e2c1ed9d875bf3e32f0988520796bc503330129", "distro": "debian-10", "type": "NAMI", - "version": "1.12.0-2" + "version": "1.13.0-0" }, "postgresql-repmgr": { "arch": "amd64", diff --git a/bitnami/postgresql-repmgr/12/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh b/bitnami/postgresql-repmgr/12/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh index d568f8218e6d..712878b2ad3a 100644 --- a/bitnami/postgresql-repmgr/12/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh +++ b/bitnami/postgresql-repmgr/12/debian-10/rootfs/opt/bitnami/scripts/libpostgresql.sh @@ -466,6 +466,8 @@ postgresql_create_admin_user() { echo "CREATE ROLE \"${POSTGRESQL_USERNAME}\" WITH LOGIN ${connlimit_string} CREATEDB PASSWORD '${escaped_password}';" | postgresql_execute info "Granting access to \"${POSTGRESQL_USERNAME}\" to the database \"${POSTGRESQL_DATABASE}\"" echo "GRANT ALL PRIVILEGES ON DATABASE \"${POSTGRESQL_DATABASE}\" TO \"${POSTGRESQL_USERNAME}\"\;" | postgresql_execute "" "postgres" "$POSTGRESQL_PASSWORD" + info "Setting ownership for the 'public' schema database \"${POSTGRESQL_DATABASE}\" to \"${POSTGRESQL_USERNAME}\"" + echo "ALTER SCHEMA public OWNER TO \"${POSTGRESQL_USERNAME}\"\;" | postgresql_execute "$POSTGRESQL_DATABASE" "postgres" "$POSTGRESQL_PASSWORD" } ######################## diff --git a/bitnami/postgresql-repmgr/README.md b/bitnami/postgresql-repmgr/README.md index e46ff511ba12..361da645f02e 100644 --- a/bitnami/postgresql-repmgr/README.md +++ b/bitnami/postgresql-repmgr/README.md @@ -44,7 +44,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`13`, `13-debian-10`, `13.3.0`, `13.3.0-debian-10-r19` (13/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/13.3.0-debian-10-r19/13/debian-10/Dockerfile) -* [`12`, `12-debian-10`, `12.7.0`, `12.7.0-debian-10-r21` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.7.0-debian-10-r21/12/debian-10/Dockerfile) +* [`12`, `12-debian-10`, `12.7.0`, `12.7.0-debian-10-r22` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/12.7.0-debian-10-r22/12/debian-10/Dockerfile) * [`11`, `11-debian-10`, `11.12.0`, `11.12.0-debian-10-r21`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/11.12.0-debian-10-r21/11/debian-10/Dockerfile) * [`10`, `10-debian-10`, `10.17.0`, `10.17.0-debian-10-r21` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/10.17.0-debian-10-r21/10/debian-10/Dockerfile) * [`9.6`, `9.6-debian-10`, `9.6.22`, `9.6.22-debian-10-r21` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql-repmgr/blob/9.6.22-debian-10-r21/9.6/debian-10/Dockerfile)