You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-28 10:42:06 +03:00
Add POSTGRES_INITDB_ARGS env var
This commit is contained in:
@ -15,7 +15,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
|
||||
# look specifically for PG_VERSION, as it is expected in the DB dir
|
||||
if [ ! -s "$PGDATA/PG_VERSION" ]; then
|
||||
gosu postgres initdb
|
||||
gosu postgres initdb "$POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
Reference in New Issue
Block a user