From 856d1686a0a6df0bbd927991b37421c3e06b722818d8829a090cecb2558f2945 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 29 Mar 2023 15:59:57 +0000 Subject: [PATCH] [info=d973ce7707e7e5fe93303cb48c5dbf22] OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postgres-15-image?expand=0&rev=2 --- docker-entrypoint.sh | 4 ++-- postgres-15-image.changes | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 26b1d13..7ba6b25 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -38,11 +38,11 @@ docker_create_db_directories() { mkdir -p "$PGDATA" # ignore failure since there are cases where we can't chmod (and PostgreSQL might fail later anyhow - it's picky about permissions of this directory) - chmod 700 "$PGDATA" || : + chmod 00700 "$PGDATA" || : # ignore failure since it will be fine when using the image provided directory; see also https://github.com/docker-library/postgres/pull/289 mkdir -p /var/run/postgresql || : - chmod 775 /var/run/postgresql || : + chmod 03775 /var/run/postgresql || : # Create the transaction log directory before initdb is run so the directory is owned by the correct user if [ -n "${POSTGRES_INITDB_WALDIR:-}" ]; then diff --git a/postgres-15-image.changes b/postgres-15-image.changes index 78d0143..0d7fa28 100644 --- a/postgres-15-image.changes +++ b/postgres-15-image.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 29 13:44:26 UTC 2023 - Dan Čermák + +- Correct file permissions for chmod calls in docker-entrypoint.sh + ------------------------------------------------------------------- Mon Mar 13 15:23:17 UTC 2023 - SUSE Update Bot