You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker-entrypoint.sh
+8-22Lines changed: 8 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ set_listen_addresses() {
7
7
}
8
8
9
9
if [ "$1"='postgres' ];then
10
-
mkdir -p "$PGDATA"
11
-
chown -R postgres "$PGDATA"
10
+
mkdir -p "${PGDATA}"
11
+
chown -R postgres "${PGDATA}"
12
12
13
13
chmod g+s /run/postgresql
14
14
chown -R postgres /run/postgresql
@@ -44,21 +44,11 @@ if [ "$1" = 'postgres' ]; then
44
44
45
45
{ echo;echo"host all all 0.0.0.0/0 $authMethod"; } >>"$PGDATA/pg_hba.conf"
46
46
47
-
set_listen_addresses ''# we're going to start up postgres, but it's not ready for use yet (this is initialization), so don't listen to the outside world yet
0 commit comments