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

Adjust "/var/run/postgresql" permissions for arbitrary-user support

This commit is contained in:
Tianon Gravi
2017-05-19 10:46:58 -07:00
parent e7222bf985
commit 54053ad27a
24 changed files with 31 additions and 27 deletions

View File

@ -35,7 +35,7 @@ if [ "$1" = 'postgres' ] && [ "$(id -u)" = '0' ]; then
mkdir -p /var/run/postgresql
chown -R postgres /var/run/postgresql
chmod g+s /var/run/postgresql
chmod 775 /var/run/postgresql
# Create the transaction log directory before initdb is run (below) so the directory is owned by the correct user
if [ "$POSTGRES_INITDB_XLOGDIR" ]; then