From 4f842a9edf76fb0c19f0f94993ed880c53ff3b2f Mon Sep 17 00:00:00 2001 From: Auke Noppe Date: Mon, 16 Feb 2026 15:22:48 +0100 Subject: [PATCH] Add dbOwner role for _restore database to mongo-init.sh script When restoring an installation from backup, the unifi network application tries to drop the `${MONGODB_DBNAME}_restore` database, which fails because the user used to authenticate with MonboDB doesn't have the permissions to do so. --- readme-vars.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/readme-vars.yml b/readme-vars.yml index eac9a65..87bcaf5 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -79,7 +79,8 @@ app_setup_block: | roles: [ { db: "${MONGO_DBNAME}", role: "dbOwner" }, { db: "${MONGO_DBNAME}_stat", role: "dbOwner" }, - { db: "${MONGO_DBNAME}_audit", role: "dbOwner" } + { db: "${MONGO_DBNAME}_audit", role: "dbOwner" }, + { db: "${MONGO_DBNAME}_restore", role: "dbOwner" } ] }) EOF