File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ if [ "$1" = 'postgres' ]; then
22
22
chmod 700 " $PGDATA "
23
23
chown -R postgres " $PGDATA "
24
24
25
+ mkdir -p /run/postgresql
25
26
chmod g+s /run/postgresql
26
27
chown -R postgres /run/postgresql
27
28
@@ -69,8 +70,8 @@ if [ "$1" = 'postgres' ]; then
69
70
70
71
if [ " x$REPLICATE_FROM " == " x" ]; then
71
72
72
- { echo ; echo " host replication all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
73
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
73
+ { echo ; echo " host replication all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
74
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
74
75
75
76
# internal start of server in order to allow set-up using psql-client
76
77
# does not listen on external TCP/IP and waits until start finishes
You can’t perform that action at this time.
0 commit comments