Ensure user and db mariadb
This commit is contained in:
parent
ca777336fb
commit
f598882a52
|
@ -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" = {
|
||||||
|
|
Loading…
Reference in a new issue