1
0
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:
Nick Cox
2016-03-03 18:13:01 -07:00
parent 48d6cd0f57
commit a511763ae7
6 changed files with 6 additions and 6 deletions

View File

@ -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