Skip to content

Commit c057166

Browse files
committed
Merge branch 'upstream' into 9.6
# Conflicts: # docker-entrypoint.sh
2 parents fb5a55c + dd5ec45 commit c057166

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-entrypoint.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ if [ "$1" = 'postgres' ]; then
2222
chmod 700 "$PGDATA"
2323
chown -R postgres "$PGDATA"
2424

25+
mkdir -p /run/postgresql
2526
chmod g+s /run/postgresql
2627
chown -R postgres /run/postgresql
2728

@@ -69,8 +70,8 @@ if [ "$1" = 'postgres' ]; then
6970

7071
if [ "x$REPLICATE_FROM" == "x" ]; then
7172

72-
{ echo; echo "host replication all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
73-
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
73+
{ echo; echo "host replication all 0.0.0.0/0 $authMethod"; } | gosu postgres tee -a "$PGDATA/pg_hba.conf" > /dev/null
74+
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } | gosu postgres tee -a "$PGDATA/pg_hba.conf" > /dev/null
7475

7576
# internal start of server in order to allow set-up using psql-client
7677
# does not listen on external TCP/IP and waits until start finishes

0 commit comments

Comments
 (0)