From f8b55405ff5dd54c8dd9af8427d265df818daca1 Mon Sep 17 00:00:00 2001 From: LinuxServer-CI Date: Sun, 23 Jun 2024 11:58:53 +0000 Subject: [PATCH] Bot Updating Templated Files --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index c4dafe5..225e4d6 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,12 @@ db.createUser({ EOF ``` +If you are using the Mongo v4 (the latest which does not require AVX): + +```js +db.getSiblingDB("MONGO_DBNAME").createUser({user: "MONGO_USER", pwd: "MONGO_PASS", roles: [{role: "dbOwner", db: "MONGO_DBNAME"}, {role: "dbOwner", db: "MONGO_DBNAME_stat"}]}); +``` + Being sure to replace the placeholders with the same values you supplied to the Unifi container, and mount it into your *mongodb* container. For example: