Ensure user and db mariadb

This commit is contained in:
Lillian Violet 2023-11-22 17:44:07 +01:00
parent 4476f30a65
commit ccc10dfc26

View file

@ -73,13 +73,15 @@
#Directory for the database is /var/lib/mysql
# Ensure the database, user, and permissions always exist
# ensureDatabases = ["NC"];
# ensureUsers = [
# {
# name = "nextcloud";
# ensurePermissions."DATABASE NC" = "ALL PRIVILEGES";
# }
# ];
ensureDatabases = ["NC"];
ensureUsers = [
{
name = "nextcloud";
ensurePermissions = {
"NC.*" = "ALL PRIVILEGES";
};
}
];
};
systemd.services."nextcloud-setup" = {