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 #Directory for the database is /var/lib/mysql
# Ensure the database, user, and permissions always exist # Ensure the database, user, and permissions always exist
# ensureDatabases = ["NC"]; ensureDatabases = ["NC"];
# ensureUsers = [ ensureUsers = [
# { {
# name = "nextcloud"; name = "nextcloud";
# ensurePermissions."DATABASE NC" = "ALL PRIVILEGES"; ensurePermissions = {
# } "NC.*" = "ALL PRIVILEGES";
# ]; };
}
];
}; };
systemd.services."nextcloud-setup" = { systemd.services."nextcloud-setup" = {