about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2020-03-07 13:25:17 -0500
committerGitHub <noreply@github.com>2020-03-07 13:25:17 -0500
commit93745d243b4ed3c6cfa360da9ad458ec29431ff5 (patch)
treeba363ea1b3bc18d3706658ba7ec3edf47e3b97e8 /nixos/modules/services
parentc5e223e1202424a5cef48d37f1f0c400f9a1b72b (diff)
parentce34b927e0957e2ff2e8723aa2d73cbacd0563dd (diff)
downloadnixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar.gz
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar.bz2
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar.lz
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar.xz
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.tar.zst
nixlib-93745d243b4ed3c6cfa360da9ad458ec29431ff5.zip
Merge pull request #79488 from danielfullmer/zoneminder-1.34.2
zoneminder: 1.32.3 -> 1.34.3
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/misc/zoneminder.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/zoneminder.nix b/nixos/modules/services/misc/zoneminder.nix
index d7f7324580c0..d5b3537068d3 100644
--- a/nixos/modules/services/misc/zoneminder.nix
+++ b/nixos/modules/services/misc/zoneminder.nix
@@ -77,6 +77,8 @@ in {
         `config.services.zoneminder.database.createLocally` to true. Otherwise,
         when set to `false` (the default), you will have to create the database
         and database user as well as populate the database yourself.
+        Additionally, you will need to run `zmupdate.pl` yourself when
+        upgrading to a newer version.
       '';
 
       webserver = mkOption {
@@ -330,6 +332,8 @@ in {
             ${config.services.mysql.package}/bin/mysql < ${pkg}/share/zoneminder/db/zm_create.sql
             touch "/var/lib/${dirName}/db-created"
           fi
+
+          ${zoneminder}/bin/zmupdate.pl -nointeractive
         '';
         serviceConfig = {
           User = user;