Merge pull request #1 from jpsecher/master

Fix script so that it works in current postgres container.
This commit is contained in:
Mart Sõmermaa 2017-12-05 23:27:10 +02:00 committed by GitHub
commit 36e1ff266e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ function create_user_and_database() {
EOSQL
}
if [ $POSTGRES_MULTIPLE_DATABASES ]; then
if [ -n "$POSTGRES_MULTIPLE_DATABASES" ]; then
echo "Multiple database creation requested: $POSTGRES_MULTIPLE_DATABASES"
for db in $(echo $POSTGRES_MULTIPLE_DATABASES | tr ',' ' '); do
create_user_and_database $db