Fix script so that it works in current postgres container.
This commit is contained in:
parent
aced58e35f
commit
dfc6df914b
@ -13,7 +13,7 @@ function create_user_and_database() {
|
|||||||
EOSQL
|
EOSQL
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $POSTGRES_MULTIPLE_DATABASES ]; then
|
if [ -n "$POSTGRES_MULTIPLE_DATABASES" ]; then
|
||||||
echo "Multiple database creation requested: $POSTGRES_MULTIPLE_DATABASES"
|
echo "Multiple database creation requested: $POSTGRES_MULTIPLE_DATABASES"
|
||||||
for db in $(echo $POSTGRES_MULTIPLE_DATABASES | tr ',' ' '); do
|
for db in $(echo $POSTGRES_MULTIPLE_DATABASES | tr ',' ' '); do
|
||||||
create_user_and_database $db
|
create_user_and_database $db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user