fix init-mongo.sh

This commit is contained in:
Federico Iezzi 2024-08-12 14:49:46 +02:00
parent 40da3b9865
commit e99b2d4e34

View file

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