File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
99 chown -R postgres:postgres /run/postgresql
1010
1111 # look specifically for PG_VERSION, as it is expected in the DB dir
12- if [ -s " $PGDATA /PG_VERSION" ]; then
12+ if [ ! -s " $PGDATA /PG_VERSION" ]; then
1313 gosu postgres initdb
1414
1515 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
You can’t perform that action at this time.
0 commit comments