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 @@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
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
9
9
chown -R postgres:postgres /run/postgresql
10
10
11
11
# 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
13
13
gosu postgres initdb
14
14
15
15
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
You can’t perform that action at this time.
0 commit comments