Compare commits

..

No commits in common. "7e2e986a6baac5e84fc4d01a71725882d4118d2d" and "814c20591674c8878ecea4455522c441d3e73425" have entirely different histories.

2 changed files with 3 additions and 1 deletions

View file

@ -81,8 +81,9 @@ else
mongo_init_bin='mongo'
fi
"${mongo_init_bin}" <<EOF
use ${MONGO_AUTHSOURCE}
use "{MONGO_AUTHSOURCE}"
db.auth("${MONGO_INITDB_ROOT_USERNAME}", "${MONGO_INITDB_ROOT_PASSWORD}")
use "${MONGO_DBNAME}"
db.createUser({
user: "${MONGO_USER}",
pwd: "${MONGO_PASS}",

View file

@ -77,6 +77,7 @@ app_setup_block: |
"${mongo_init_bin}" <<EOF
use ${MONGO_AUTHSOURCE}
db.auth("${MONGO_INITDB_ROOT_USERNAME}", "${MONGO_INITDB_ROOT_PASSWORD}")
use ${MONGO_DBNAME}
db.createUser({
user: "${MONGO_USER}",
pwd: "${MONGO_PASS}",