Skip to content

Commit 4774c03

Browse files
committed
Merge pull request #110 from JacobHayes/set-PGDATA-permissions
Set PGDATA permissions to 700
2 parents d744744 + d164485 commit 4774c03

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

9.0/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

9.1/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

9.2/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

9.3/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

9.4/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

9.5/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set_listen_addresses() {
88

99
if [ "$1" = 'postgres' ]; then
1010
mkdir -p "$PGDATA"
11+
chmod 700 "$PGDATA"
1112
chown -R postgres "$PGDATA"
1213

1314
chmod g+s /run/postgresql

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy