From 8a4fe7a3a48c0e68e5e01a282913f272e51e4fbea1f7b4810c0ca60272e8c5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 25 Oct 2023 15:45:56 +0000 Subject: [PATCH] [info=b696cf0feb61363101997c4cc251dbe2] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-15-image?expand=0&rev=35 --- Dockerfile | 1 + postgres-15-image.changes | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8b13d1b..d2d6d0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,6 +53,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/postgresql15/postgresql.conf.sample diff --git a/postgres-15-image.changes b/postgres-15-image.changes index db51a12..7ffde8e 100644 --- a/postgres-15-image.changes +++ b/postgres-15-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