From 4c64355fa3f48800ec36ef0b8c41dd5bcb895d6e Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Sat, 5 Nov 2022 15:48:03 +0700 Subject: [PATCH] nixos/zoneminder: also run zmupdate "freshen" on start -f "freshen the configuration in the database", which will matter when ZoneMinder adds a new configuration item [1]. Although it can also be run without a new configuration item too; upstream's Debian postinst code always run it on upgrade [2]. [1] e.g. https://forums.zoneminder.com/viewtopic.php?p=127220 [2] https://github.com/ZoneMinder/zoneminder/blob/master/distros/ubuntu2004/zoneminder.postinst#L45 --- nixos/modules/services/misc/zoneminder.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/zoneminder.nix b/nixos/modules/services/misc/zoneminder.nix index 109415a20ee6..a52428ca1f67 100644 --- a/nixos/modules/services/misc/zoneminder.nix +++ b/nixos/modules/services/misc/zoneminder.nix @@ -326,6 +326,7 @@ in { fi ${zoneminder}/bin/zmupdate.pl -nointeractive + ${zoneminder}/bin/zmupdate.pl --nointeractive -f ''; serviceConfig = { User = user;