1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Simplify docker-entrypoint.sh append line

This commit is contained in:
Pahaz Blinov
2017-03-23 15:23:22 +05:00
committed by Tianon Gravi
parent 123aedc09b
commit 3d4e5e9f64
11 changed files with 44 additions and 11 deletions

View File

@ -86,7 +86,10 @@ if [ "$1" = 'postgres' ]; then
authMethod=trust
fi
{ echo; echo "host all all all $authMethod"; } | tee -a "$PGDATA/pg_hba.conf" > /dev/null
{
echo
echo "host all all all $authMethod"
} >> "$PGDATA/pg_hba.conf"
# internal start of server in order to allow set-up using psql-client
# does not listen on external TCP/IP and waits until start finishes