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

Run update.sh

This commit is contained in:
Tianon Gravi
2015-08-21 15:39:01 -07:00
parent 486194c97f
commit 7111ef75d6
7 changed files with 39 additions and 123 deletions

View File

@ -45,10 +45,10 @@ if [ "$1" = 'postgres' ]; then
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
# internal start of server in order to allow set-up using psql-client
# does not listen on TCP/IP and waits until start finishes
gosu postgres pg_ctl -D "$PGDATA" \
-o "-c listen_addresses=''" \
-w start # does not listen on TCP/IP and waits
# until start finishes
-o "-c listen_addresses=''" \
-w start
: ${POSTGRES_USER:=postgres}
: ${POSTGRES_DB:=$POSTGRES_USER}