File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ set_listen_addresses() {
7
7
}
8
8
9
9
if [ " $1 " = ' postgres' ]; then
10
- mkdir -p " ${ PGDATA} "
11
- chown -R postgres " ${ PGDATA} "
10
+ mkdir -p " $PGDATA "
11
+ chown -R postgres " $PGDATA "
12
12
13
13
chmod g+s /run/postgresql
14
14
chown -R postgres /run/postgresql
@@ -45,10 +45,10 @@ if [ "$1" = 'postgres' ]; then
45
45
{ echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
46
47
47
# 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" \
49
49
-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
52
52
53
53
: ${POSTGRES_USER:= postgres}
54
54
: ${POSTGRES_DB:= $POSTGRES_USER }
@@ -81,7 +81,7 @@ if [ "$1" = 'postgres' ]; then
81
81
echo
82
82
done
83
83
84
- gosu postgres pg_ctl -D ${ PGDATA} -m fast -w stop
84
+ gosu postgres pg_ctl -D " $ PGDATA" -m fast -w stop
85
85
set_listen_addresses ' *'
86
86
87
87
echo
You can’t perform that action at this time.
0 commit comments