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