Skip to content

Commit a62e7a6

Browse files
committed
Run initdb commands as $POSTGRES_USER
Corresponds to the changes in docker-library/postgres#82
1 parent 37a0964 commit a62e7a6

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

9.0-2.1/initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

9.1-2.1/initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

9.2-2.1/initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

9.3-2.1/initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

9.4-2.1/initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

initdb-postgis.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -e
44

5-
# Perform all actions as user 'postgres'
6-
export PGUSER=postgres
5+
# Perform all actions as $POSTGRES_USER
6+
export PGUSER="$POSTGRES_USER"
77

88
# Create the 'template_postgis' template db
99
psql <<EOSQL

0 commit comments

Comments
 (0)