From 1085b59d51a567e6ce03581190b15153992a617c69639990fb4c75fa42f95d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 25 Oct 2023 15:45:46 +0000 Subject: [PATCH] [info=4b5f6457a1c6fd2277b87a4a867854ca] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-12-image?expand=0&rev=49 --- Dockerfile | 1 + postgres-12-image.changes | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 523f327..a5d8a62 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/postgresql12/postgresql.conf.sample diff --git a/postgres-12-image.changes b/postgres-12-image.changes index 35a59c9..f8d9c5f 100644 --- a/postgres-12-image.changes +++ b/postgres-12-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