From 1847eca692c2dbed91810b501436107f7267bf36d1352c8dc5b8b07fcd1dc28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 25 Oct 2023 15:46:06 +0000 Subject: [PATCH] [info=3dcb38246d0a8ded8b3199ae2dc1a8bf] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-16-image?expand=0&rev=7 --- Dockerfile | 1 + postgres-16-image.changes | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 9e2fd75..7926e2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,7 @@ COPY docker-entrypoint.sh /usr/local/bin/ RUN set -euo pipefail; chmod +x /usr/local/bin/docker-entrypoint.sh; \ sed -i -e 's/exec gosu postgres "/exec setpriv --reuid=postgres --regid=postgres --clear-groups -- "/g' /usr/local/bin/docker-entrypoint.sh; \ mkdir /docker-entrypoint-initdb.d; \ + install -m 1775 -o postgres -g postgres -d /run/postgresql; \ install -d -m 0700 -o postgres -g postgres $PGDATA; \ sed -ri "s|^#?(listen_addresses)\s*=\s*\S+.*|\1 = '*'|" /usr/share/postgresql16/postgresql.conf.sample diff --git a/postgres-16-image.changes b/postgres-16-image.changes index be8e772..de45372 100644 --- a/postgres-16-image.changes +++ b/postgres-16-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 25 15:40:55 UTC 2023 - Dirk Mueller + +- ensure rundir for postgres is created with the proper permissions + ------------------------------------------------------------------- Thu Sep 28 14:29:10 UTC 2023 - Dirk Mueller