1
0
IaC/podman/init_db.js

21 lines
404 B
JavaScript
Raw Normal View History

2024-01-04 08:41:50 -05:00
db.getSiblingDB("unifi").createUser (
{
user: "unifi",
pwd: "unifi",
roles: [
{ role: "dbOwner", db: "unifi" },
{ role: "dbOwner", db: "unifi_stat" }
]
}
);
db.getSiblingDB("unifi_stat").createUser (
{
user: "unifi",
pwd: "unifi",
roles: [
{ role: "dbOwner", db: "unifi_stat" }
]
}
);