Skip to content

Commit 220ec2e

Browse files
authored
Add restore database role to init-mongo.sh example in the README
When restoring an installation from a fresh install, the user used to authenticate with MongoDB lacked the permissions to drop the restore database, which caused the restore to fail completely.
1 parent baf10c1 commit 220ec2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ db.createUser({
8787
{ db: "${MONGO_DBNAME}", role: "dbOwner" },
8888
{ db: "${MONGO_DBNAME}_stat", role: "dbOwner" },
8989
{ db: "${MONGO_DBNAME}_audit", role: "dbOwner" }
90+
{ db: "${MONGO_DBNAME}_restore", role: "dbOwner" }
9091
]
9192
})
9293
EOF

0 commit comments

Comments
 (0)