Bump changedetection to 0.38.2

This commit is contained in:
Dave Gallant
2021-08-13 20:59:59 -04:00
parent 109827623e
commit 16142636a4
4 changed files with 82 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
{ config, pkgs, ... }:
let
changedetectionDir = "/var/lib/changedetection.io/";
in
{
systemd.services.changedetection = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
preStart = ''
mkdir -p ${changedetectionDir}/datastore
'';
serviceConfig = {
Type = "forking";
ExecStart = "${pkgs.changedetection.io}/bin/changedetection.py -d ${changedetectionDir}/datastore";
Restart = "on-failure";
WorkingDirectory = "${changedetectionDir}";
};
};
}