diff --git a/9.1/docker-entrypoint.sh b/9.1/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.1/docker-entrypoint.sh +++ b/9.1/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.2/docker-entrypoint.sh b/9.2/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.2/docker-entrypoint.sh +++ b/9.2/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.3/docker-entrypoint.sh b/9.3/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.3/docker-entrypoint.sh +++ b/9.3/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.4/docker-entrypoint.sh b/9.4/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.4/docker-entrypoint.sh +++ b/9.4/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.5/docker-entrypoint.sh b/9.5/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.5/docker-entrypoint.sh +++ b/9.5/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/9.6/docker-entrypoint.sh b/9.6/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/9.6/docker-entrypoint.sh +++ b/9.6/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 3b436e4adf..839868a230 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then chmod 700 "$PGDATA" chown -R postgres "$PGDATA" + mkdir -p /run/postgresql chmod g+s /run/postgresql chown -R postgres /run/postgresql