1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Adjust "chmod" to not fail (since PostgreSQL validates this itself later)

This commit is contained in:
Tianon Gravi
2020-12-28 09:51:28 -08:00
parent 3690694930
commit 36ffea2cb2
13 changed files with 26 additions and 13 deletions

View File

@ -37,7 +37,8 @@ docker_create_db_directories() {
local user; user="$(id -u)"
mkdir -p "$PGDATA"
chmod 700 "$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" || :
# 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 || :