You've already forked postgres
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:
committed by
Joe Ferguson
parent
0a0f6444f5
commit
33bccfcadd
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user