From 209aeb0d7feace0ba7e8036b7acb2ae2004e2190 Mon Sep 17 00:00:00 2001 From: Yan Date: Tue, 16 Mar 2021 00:50:49 -0300 Subject: [PATCH] Windows problem fix FATAL: data directory "/var/lib/postgresql/data" has invalid permissions DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750). --- 13/alpine/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/13/alpine/docker-entrypoint.sh b/13/alpine/docker-entrypoint.sh index 2e32d2d49b..4bef98331b 100755 --- a/13/alpine/docker-entrypoint.sh +++ b/13/alpine/docker-entrypoint.sh @@ -38,7 +38,7 @@ 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 750 "$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 || :