Skip to content

Commit dd5ec45

Browse files
committed
1 parent d308f7e commit dd5ec45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then
1010
chmod 700 "$PGDATA"
1111
chown -R postgres "$PGDATA"
1212

13+
mkdir -p /run/postgresql
1314
chmod g+s /run/postgresql
1415
chown -R postgres /run/postgresql
1516

@@ -42,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
4243
authMethod=trust
4344
fi
4445

45-
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
46+
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } | gosu postgres tee -a "$PGDATA/pg_hba.conf" > /dev/null
4647

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

0 commit comments

Comments
 (0)