1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-25 12:22:02 +03:00

Update docker-entrypoint.sh

IPv6 default rule added into pg_hba.conf

The "all" keyword instead of the IP notation
This commit is contained in:
p0123n
2016-10-11 12:40:50 +03:00
committed by Tianon Gravi
parent d2b3854477
commit dfef790cd6

View File

@ -67,7 +67,7 @@ if [ "$1" = 'postgres' ]; then
authMethod=trust
fi
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } | gosu postgres tee -a "$PGDATA/pg_hba.conf" > /dev/null
{ echo; echo "host all all all $authMethod"; } | gosu postgres tee -a "$PGDATA/pg_hba.conf" > /dev/null
# 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