nixos/smokeping: replace smokeping.fcgi with a symlink
This fixes a regression from bb649d96b038ab2c567439987bc182f6797bae5a.
There were permission problems, when the preStart script tried to copy
the smokeping.fcgi file over the old file.
commit9eb067b0d7ea796f2c7c3b8b6a870e320e90863c
authorJustin Humm <justin.humm@posteo.de>
dateMon 14 Oct 2019, 21:03 (7 years ago)
parent67effde
nixos/modules/services/networking/smokeping.nix+2−1
@@ -299,7 +299,8 @@ in
299299 mkdir -m 0755 -p ${smokepingHome}/cache ${smokepingHome}/data
300300 rm -f ${smokepingHome}/cropper
301301 ln -s ${cfg.package}/htdocs/cropper ${smokepingHome}/cropper
302− cp ${cgiHome} ${smokepingHome}/smokeping.fcgi
302+ rm -f ${smokepingHome}/smokeping.fcgi
303+ ln -s ${cgiHome} ${smokepingHome}/smokeping.fcgi
303304 ${cfg.package}/bin/smokeping --check --config=${configPath}
304305 ${cfg.package}/bin/smokeping --static --config=${configPath}
305306 '';