You've already forked postgres
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:
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
@ -215,7 +215,7 @@ docker_temp_server_start() {
|
|||||||
|
|
||||||
# internal start of server in order to allow setup using psql client
|
# internal start of server in order to allow setup using psql client
|
||||||
# does not listen on external TCP/IP and waits until start finishes
|
# 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}" \
|
PGUSER="${PGUSER:-$POSTGRES_USER}" \
|
||||||
pg_ctl -D "$PGDATA" \
|
pg_ctl -D "$PGDATA" \
|
||||||
|
Reference in New Issue
Block a user