File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ function create_user_and_database() {
77 local database=$1
88 echo " Creating user and database '$database '"
99 psql -v ON_ERROR_STOP=1 --username " $POSTGRES_USER " << -EOSQL
10- CREATE DATABASE $ database ;
11- GRANT ALL PRIVILEGES ON DATABASE $ database TO $POSTGRES_USER ;
10+ CREATE DATABASE " ${ database} " ;
11+ GRANT ALL PRIVILEGES ON DATABASE " ${ database} " TO $POSTGRES_USER ;
1212EOSQL
1313}
1414
15- if [ -n " $POSTGRES_MULTIPLE_DATABASES " ]; then
16- echo " Multiple database creation requested: $POSTGRES_MULTIPLE_DATABASES "
17- for db in $( echo $POSTGRES_MULTIPLE_DATABASES | tr ' ,' ' ' ) ; do
15+ if [ -n " $POSTGRES_ADDITIONAL_DATABASES " ]; then
16+ echo " Multiple database creation requested: $POSTGRES_ADDITIONAL_DATABASES "
17+ for db in $( echo $POSTGRES_ADDITIONAL_DATABASES | tr ' ,' ' ' ) ; do
1818 create_user_and_database $db
1919 done
2020 echo " Multiple databases created"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ services:
1313 - POSTGRES_PASSWORD=postgres
1414 - POSTGRES_USER=postgres
1515 - POSTGRES_DB=postgres
16- - POSTGRES_MULTIPLE_DATABASES =keycloak,bpm
16+ - POSTGRES_ADDITIONAL_DATABASES =keycloak,flow- bpm
1717 ports :
1818 - 5432:5432
1919 networks :
You can’t perform that action at this time.
0 commit comments