Use ensureDBOwnership instead of ensurePermissions

This commit is contained in:
Charlotte Van Petegem 2023-12-24 12:56:47 +01:00
parent b243ca4445
commit e7b4c81f29
No known key found for this signature in database
GPG key ID: 019E764B7184435A
3 changed files with 5 additions and 11 deletions

View file

@ -77,7 +77,7 @@
ensureDatabases = [ "grafana" ];
ensureUsers = [{
name = "grafana";
ensurePermissions = { "DATABASE grafana" = "ALL PRIVILEGES"; };
ensureDBOwnership = true;
}];
};
};

View file

@ -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;
}
];
};

View file

@ -47,7 +47,7 @@
ensureDatabases = [ "nextcloud" ];
ensureUsers = [{
name = "nextcloud";
ensurePermissions = { "DATABASE nextcloud" = "ALL PRIVILEGES"; };
ensureDBOwnership = true;
}];
};
redis.servers.nextcloud = {