File tree Expand file tree Collapse file tree 13 files changed +65
-26
lines changed
Expand file tree Collapse file tree 13 files changed +65
-26
lines changed Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
Original file line number Diff line number Diff line change @@ -212,11 +212,14 @@ docker_temp_server_start() {
212212 if [ " $1 " = ' postgres' ]; then
213213 shift
214214 fi
215+
215216 # internal start of server in order to allow setup using psql client
216- # does not listen on external TCP/IP and waits until start finishes (can be overridden via args)
217+ # does not listen on external TCP/IP and waits until start finishes
218+ set -- " $@ " -c listen_addresses=' ' -p 5432
219+
217220 PGUSER=" ${PGUSER:- $POSTGRES_USER } " \
218221 pg_ctl -D " $PGDATA " \
219- -o " -c listen_addresses='' $( [ " $# " -gt 0 ] && printf ' %q ' " $@ " ) " \
222+ -o " $( printf ' %q ' " $@ " ) " \
220223 -w start
221224}
222225
You can’t perform that action at this time.
0 commit comments