Skip to content

Commit 0ffbeb7

Browse files
committed
fixed missing quotes and removed curly braces according to discussion
1 parent d49499c commit 0ffbeb7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker-entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ set_listen_addresses() {
77
}
88

99
if [ "$1" = 'postgres' ]; then
10-
mkdir -p "${PGDATA}"
11-
chown -R postgres "${PGDATA}"
10+
mkdir -p "$PGDATA"
11+
chown -R postgres "$PGDATA"
1212

1313
chmod g+s /run/postgresql
1414
chown -R postgres /run/postgresql
@@ -45,10 +45,10 @@ if [ "$1" = 'postgres' ]; then
4545
{ echo; echo "host all all 0.0.0.0/0 $authMethod"; } >> "$PGDATA/pg_hba.conf"
4646

4747
# internal start of server in order to allow set-up using psql-client
48-
gosu postgres pg_ctl -D ${PGDATA} \
48+
gosu postgres pg_ctl -D "$PGDATA" \
4949
-o "-c listen_addresses=''" \
50-
-w start # does not listen on TCP/IP and wait
51-
# until start finished
50+
-w start # does not listen on TCP/IP and waits
51+
# until start finishes
5252

5353
: ${POSTGRES_USER:=postgres}
5454
: ${POSTGRES_DB:=$POSTGRES_USER}
@@ -81,7 +81,7 @@ if [ "$1" = 'postgres' ]; then
8181
echo
8282
done
8383

84-
gosu postgres pg_ctl -D ${PGDATA} -m fast -w stop
84+
gosu postgres pg_ctl -D "$PGDATA" -m fast -w stop
8585
set_listen_addresses '*'
8686

8787
echo

0 commit comments

Comments
 (0)