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 = [ ensureUsers = [
{ {
name = "matrix-synapse"; name = "matrix-synapse";
ensurePermissions."DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES"; ensureDBOwnership = true;
} }
]; ];
}; };

View file

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

View file

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

View file

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