diff --git a/bitnami/pgbouncer/1/debian-10/Dockerfile b/bitnami/pgbouncer/1/debian-10/Dockerfile index eab990b12289..4183ea09d86b 100644 --- a/bitnami/pgbouncer/1/debian-10/Dockerfile +++ b/bitnami/pgbouncer/1/debian-10/Dockerfile @@ -25,7 +25,7 @@ COPY rootfs / RUN /opt/bitnami/scripts/locales/add-extra-locales.sh RUN /opt/bitnami/scripts/pgbouncer/postunpack.sh ENV BITNAMI_APP_NAME="pgbouncer" \ - BITNAMI_IMAGE_VERSION="1.16.1-debian-10-r26" \ + BITNAMI_IMAGE_VERSION="1.16.1-debian-10-r27" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \ diff --git a/bitnami/pgbouncer/1/debian-10/prebuildfs/opt/bitnami/scripts/libfs.sh b/bitnami/pgbouncer/1/debian-10/prebuildfs/opt/bitnami/scripts/libfs.sh index b438c913341d..1b504b1df458 100644 --- a/bitnami/pgbouncer/1/debian-10/prebuildfs/opt/bitnami/scripts/libfs.sh +++ b/bitnami/pgbouncer/1/debian-10/prebuildfs/opt/bitnami/scripts/libfs.sh @@ -20,8 +20,13 @@ owned_by() { local path="${1:?path is missing}" local owner="${2:?owner is missing}" + local group="${3:-}" - chown "$owner":"$owner" "$path" + if [[ -n $group ]]; then + chown "$owner":"$group" "$path" + else + chown "$owner":"$owner" "$path" + fi } ######################## @@ -34,11 +39,12 @@ owned_by() { ######################### ensure_dir_exists() { local dir="${1:?directory is missing}" - local owner="${2:-}" + local owner_user="${2:-}" + local owner_group="${3:-}" mkdir -p "${dir}" - if [[ -n $owner ]]; then - owned_by "$dir" "$owner" + if [[ -n $owner_user ]]; then + owned_by "$dir" "$owner_user" "$owner_group" fi } diff --git a/bitnami/pgbouncer/README.md b/bitnami/pgbouncer/README.md index 7ee7dbe1e003..f141d294f289 100644 --- a/bitnami/pgbouncer/README.md +++ b/bitnami/pgbouncer/README.md @@ -43,7 +43,7 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/). -* [`1`, `1-debian-10`, `1.16.1`, `1.16.1-debian-10-r26`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-pgbouncer/blob/1.16.1-debian-10-r26/1/debian-10/Dockerfile) +* [`1`, `1-debian-10`, `1.16.1`, `1.16.1-debian-10-r27`, `latest` (1/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-pgbouncer/blob/1.16.1-debian-10-r27/1/debian-10/Dockerfile) Subscribe to project updates by watching the [bitnami/pgbouncer GitHub repo](https://github.com/bitnami/bitnami-docker-pgbouncer).