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

Update temporary server to prefer PGPORT if set (since the client and server both normally respect that variable)

This commit is contained in:
Tianon Gravi
2019-12-02 18:07:23 -08:00
parent 4c4693ef13
commit 89a2fb84e6
13 changed files with 13 additions and 13 deletions

View File

@ -215,7 +215,7 @@ docker_temp_server_start() {
# internal start of server in order to allow setup using psql client
# does not listen on external TCP/IP and waits until start finishes
set -- "$@" -c listen_addresses='' -p 5432
set -- "$@" -c listen_addresses='' -p "${PGPORT:-5432}"
PGUSER="${PGUSER:-$POSTGRES_USER}" \
pg_ctl -D "$PGDATA" \