You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-29 21:41:20 +03:00
fixed missing quotes and removed curly braces according to discussion
This commit is contained in:
@ -7,8 +7,8 @@ set_listen_addresses() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "${PGDATA}"
|
mkdir -p "$PGDATA"
|
||||||
chown -R postgres "${PGDATA}"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
chown -R postgres /run/postgresql
|
chown -R postgres /run/postgresql
|
||||||
@ -45,10 +45,10 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
|
{ 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
|
# internal start of server in order to allow set-up using psql-client
|
||||||
gosu postgres pg_ctl -D ${PGDATA} \
|
gosu postgres pg_ctl -D "$PGDATA" \
|
||||||
-o "-c listen_addresses=''" \
|
-o "-c listen_addresses=''" \
|
||||||
-w start # does not listen on TCP/IP and wait
|
-w start # does not listen on TCP/IP and waits
|
||||||
# until start finished
|
# until start finishes
|
||||||
|
|
||||||
: ${POSTGRES_USER:=postgres}
|
: ${POSTGRES_USER:=postgres}
|
||||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||||
@ -81,7 +81,7 @@ if [ "$1" = 'postgres' ]; then
|
|||||||
echo
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
gosu postgres pg_ctl -D ${PGDATA} -m fast -w stop
|
gosu postgres pg_ctl -D "$PGDATA" -m fast -w stop
|
||||||
set_listen_addresses '*'
|
set_listen_addresses '*'
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
Reference in New Issue
Block a user