Skip to content

Commit d062194

Browse files
authored
fix: Fix new installs of Unifi (#407)
Copypasta from linuxserver/docker-unifi-network-application#149
1 parent 4364908 commit d062194

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

kustomization/components/unifi-network-application/configmap/generate-init-mongo.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ echo "db.getSiblingDB(\"unifi\")
1313
{role: \"dbOwner\", db: \"unifi\"}
1414
]
1515
});
16+
db.getSiblingDB(\"unifi_audit\")
17+
.createUser({
18+
user: \"unifi\",
19+
pwd: \"${MONGO_PASS}\",
20+
roles: [
21+
{role: \"dbOwner\", db: \"unifi_audit\"}
22+
]
23+
});
1624
db.getSiblingDB(\"unifi_stat\")
1725
.createUser({
1826
user: \"unifi\",

0 commit comments

Comments
 (0)