Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
Update users.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
charhart committed Feb 2, 2022
1 parent 08eaddb commit 69d343d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ingest-mongo/users.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (db.getUser(user) == null) {
db.createUser({user: user, pwd: passwd, roles: ["dbOwner"]});
}
if (db.getUser("$MONGO_SMARTHUB_USERNAME") == null) {
use $SMARTHUB_MONGO_DATABASE;
use $MONGO_SMARTHUB_DATABASE;
db.createUser({ user: "$MONGO_SMARTHUB_USERNAME", pwd: "$MONGO_SMARTHUB_PASSWORD", roles: [ { role: "readWrite", db: "$MONGO_SMARTHUB_DATABASE" } ]});
}
EOF

0 comments on commit 69d343d

Please sign in to comment.