1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-28 10:42:06 +03:00

Fix silently skipped init scripts

This commit is contained in:
Tianon Gravi
2020-02-27 13:59:55 -08:00
committed by Joe Ferguson
parent 0a0f6444f5
commit 33bccfcadd
11 changed files with 44 additions and 0 deletions

View File

@ -284,6 +284,10 @@ _main() {
# only run initialization on an empty data directory
if [ -z "$DATABASE_ALREADY_EXISTS" ]; then
docker_verify_minimum_env
# check dir permissions to reduce likelihood of half-initialized database
ls /docker-entrypoint-initdb.d/ > /dev/null
docker_init_database_dir
pg_setup_hba_conf