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

Use "/var/run/postgresql" consistently (and apply Debian's change of the default socket path to Alpine also)

This commit is contained in:
Tianon Gravi
2017-01-19 14:22:36 -08:00
parent a7a6cdf9d4
commit b68154ed79
23 changed files with 109 additions and 56 deletions

View File

@ -29,12 +29,13 @@ fi
if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA"
chmod 700 "$PGDATA"
mkdir -p /var/run/postgresql
chown -R postgres /var/run/postgresql
chmod g+s /var/run/postgresql
mkdir -p /run/postgresql
chmod g+s /run/postgresql
chown -R postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ ! -s "$PGDATA/PG_VERSION" ]; then