Dateien nach "install-unifi-network-application-on-portainer" hochladen

This commit is contained in:
2024-02-12 21:30:46 +00:00
parent 33641eefa2
commit 1596a6e7cf
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,9 @@
// Connect to the "unifi" database and create a user
db.getSiblingDB("unifi").createUser({
user: "unifi",
pwd: "unifi_password", // Replace with your actual password
roles: [
{ role: "dbOwner", db: "unifi" }, // Assign the "dbOwner" role for the "unifi" database
{ role: "dbOwner", db: "unifi_stat" }, // Assign the "dbOwner" role for the "unifi_stat" database
],
});