We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d308f7e commit dd5ec45Copy full SHA for dd5ec45
docker-entrypoint.sh
@@ -10,6 +10,7 @@ if [ "$1" = 'postgres' ]; then
10
chmod 700 "$PGDATA"
11
chown -R postgres "$PGDATA"
12
13
+ mkdir -p /run/postgresql
14
chmod g+s /run/postgresql
15
chown -R postgres /run/postgresql
16
@@ -42,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
42
43
authMethod=trust
44
fi
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
47
48
# internal start of server in order to allow set-up using psql-client
49
# does not listen on external TCP/IP and waits until start finishes
0 commit comments