File tree 7 files changed +42
-0
lines changed
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
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = 'postgres' ]; then
10
10
sed -ri " s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" " $PGDATA " /postgresql.conf
11
11
12
12
{ 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
13
19
fi
14
20
15
21
exec gosu postgres " $@ "
You can’t perform that action at this time.
0 commit comments