File tree Expand file tree Collapse file tree 7 files changed +42
-0
lines changed Expand file tree Collapse file tree 7 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
1010 sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
1111
1212 { echo ; echo ' host all all 0.0.0.0/0 trust' ; } >> " $PGDATA " /pg_hba.conf
13+
14+ if [ -d /docker-entrypoint-initdb.d ]; then
15+ for f in /docker-entrypoint-initdb.d/* .sh; do
16+ [ -f " $f " ] && . " $f "
17+ done
18+ fi
1319 fi
1420
1521 exec gosu postgres " $@ "
You can’t perform that action at this time.
0 commit comments