File tree 7 files changed +7
-7
lines changed 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if [ "$1" = 'postgres' ]; then
43
43
authMethod=trust
44
44
fi
45
45
46
- { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } >> " $PGDATA /pg_hba.conf"
46
+ { echo ; echo " host all all 0.0.0.0/0 $authMethod " ; } | gosu postgres tee -a " $PGDATA /pg_hba.conf" > /dev/null
47
47
48
48
# internal start of server in order to allow set-up using psql-client
49
49
# does not listen on external TCP/IP and waits until start finishes
You can’t perform that action at this time.
0 commit comments