Ensure user and db mariadb

This commit is contained in:
Lillian-Violet 2023-11-22 17:44:07 +01:00
parent ca777336fb
commit f598882a52

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" = {