Skip to content

Commit 77c9ac3

Browse files
authored
simplify docker-entrypoint.sh append line
1 parent 123aedc commit 77c9ac3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

9.6/docker-entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ if [ "$1" = 'postgres' ]; then
8585
pass=
8686
authMethod=trust
8787
fi
88-
89-
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
88+
89+
echo "" >> $PGDATA/pg_hba.conf
90+
echo "host all all all $authMethod" >> $PGDATA/pg_hba.conf
9091

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

0 commit comments

Comments
 (0)