services: remove usage of ensurePermissions

Deprecated in favor of ensureDBOwnership
This commit is contained in:
Antoine Martin 2023-12-05 16:00:25 +01:00
parent 422703c8ac
commit 78c16d6802
4 changed files with 4 additions and 8 deletions

View file

@ -58,7 +58,7 @@ in {
ensureUsers = [
{
name = "matrix-synapse";
ensurePermissions."DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
};

View file

@ -42,9 +42,7 @@ in {
ensureUsers = [
{
name = "nextcloud";
ensurePermissions = {
"DATABASE ${dbName}" = "ALL PRIVILEGES";
};
ensureDBOwnership = true;
}
];
};

View file

@ -92,7 +92,7 @@ in {
ensureUsers = [
{
name = "paperless";
ensurePermissions."DATABASE paperless" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
};

View file

@ -46,9 +46,7 @@ in {
ensureUsers = [
{
name = "vaultwarden";
ensurePermissions = {
"DATABASE vaultwarden" = "ALL PRIVILEGES";
};
ensureDBOwnership = true;
}
];
};