Skip to content

Commit d477747

Browse files
committed
do initdb for postgresql
1 parent d498539 commit d477747

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

postgresql/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ install --verbose --directory --owner postgres --group postgres --mode 1777 /var
77
install --verbose --directory --owner postgres --group postgres --mode 3777 /var/run/postgresql
88

99
su -c 'initdb --show' postgres
10+
su -c 'initdb -D /var/lib/postgresql/data' postgres
1011

1112
su -c 'pg_ctl -D /var/lib/postgresql/data start' postgres
1213

0 commit comments

Comments
 (0)