Use ensureDBOwnership instead of ensurePermissions
This commit is contained in:
parent
b243ca4445
commit
e7b4c81f29
3 changed files with 5 additions and 11 deletions
|
@ -77,7 +77,7 @@
|
|||
ensureDatabases = [ "grafana" ];
|
||||
ensureUsers = [{
|
||||
name = "grafana";
|
||||
ensurePermissions = { "DATABASE grafana" = "ALL PRIVILEGES"; };
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -79,21 +79,15 @@
|
|||
ensureUsers = [
|
||||
{
|
||||
name = "matrix_appservice_slack";
|
||||
ensurePermissions = {
|
||||
"DATABASE matrix_appservice_slack" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "mautrix_whatsapp";
|
||||
ensurePermissions = {
|
||||
"DATABASE mautrix_whatsapp" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
{
|
||||
name = "matrix-synapse";
|
||||
ensurePermissions = {
|
||||
"DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES";
|
||||
};
|
||||
ensureDBOwnership = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
ensureDatabases = [ "nextcloud" ];
|
||||
ensureUsers = [{
|
||||
name = "nextcloud";
|
||||
ensurePermissions = { "DATABASE nextcloud" = "ALL PRIVILEGES"; };
|
||||
ensureDBOwnership = true;
|
||||
}];
|
||||
};
|
||||
redis.servers.nextcloud = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue