Merge pull request #55667 from amazari/master
zoneminder: fix build issue when using createLocally database
This commit is contained in:
commit
507855e56c
@ -205,15 +205,13 @@ in {
|
|||||||
|
|
||||||
mysql = lib.mkIf cfg.database.createLocally {
|
mysql = lib.mkIf cfg.database.createLocally {
|
||||||
ensureDatabases = [ cfg.database.name ];
|
ensureDatabases = [ cfg.database.name ];
|
||||||
ensureUsers = {
|
ensureUsers = [{
|
||||||
name = cfg.database.username;
|
name = cfg.database.username;
|
||||||
ensurePermissions = [
|
ensurePermissions = { "${cfg.database.name}.*" = "ALL PRIVILEGES"; };
|
||||||
{ "${cfg.database.name}.*" = "ALL PRIVILEGES"; }
|
|
||||||
];
|
|
||||||
initialDatabases = [
|
initialDatabases = [
|
||||||
{ inherit (cfg.database) name; schema = "${pkg}/share/zoneminder/db/zm_create.sql"; }
|
{ inherit (cfg.database) name; schema = "${pkg}/share/zoneminder/db/zm_create.sql"; }
|
||||||
];
|
];
|
||||||
};
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx = lib.mkIf useNginx {
|
nginx = lib.mkIf useNginx {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user