diff --git a/9.1/docker-entrypoint.sh b/9.1/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/9.1/docker-entrypoint.sh +++ b/9.1/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up diff --git a/9.2/docker-entrypoint.sh b/9.2/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/9.2/docker-entrypoint.sh +++ b/9.2/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up diff --git a/9.3/docker-entrypoint.sh b/9.3/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/9.3/docker-entrypoint.sh +++ b/9.3/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up diff --git a/9.4/docker-entrypoint.sh b/9.4/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/9.4/docker-entrypoint.sh +++ b/9.4/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up diff --git a/9.5/docker-entrypoint.sh b/9.5/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/9.5/docker-entrypoint.sh +++ b/9.5/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index d4f689c08f..22ecdec9b4 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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 + eval "gosu postgres initdb $POSTGRES_INITDB_ARGS" # check password first so we can output the warning before postgres # messes it up