tianon's eval suggestion
This commit is contained in:
parent
a511763ae7
commit
3f8e978443
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
|
|
@ -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 "$POSTGRES_INITDB_ARGS"
|
||||
eval "gosu postgres initdb $POSTGRES_INITDB_ARGS"
|
||||
|
||||
# check password first so we can output the warning before postgres
|
||||
# messes it up
|
||||
|
|
|
|||
Loading…
Reference in New Issue