diff options
author | Justin Humm <justin.humm@posteo.de> | 2019-10-14 21:03:24 +0200 |
---|---|---|
committer | Justin Humm <justin.humm@posteo.de> | 2019-10-14 21:11:47 +0200 |
commit | 9eb067b0d7ea796f2c7c3b8b6a870e320e90863c (patch) | |
tree | 2356e84003df3d4d1d5195f30ff131a1519fdbd0 /nixos/modules/services/networking/smokeping.nix | |
parent | 67effde499ffb60da484ebbbd643c6dc69f8eb77 (diff) | |
download | nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar.gz nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar.bz2 nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar.lz nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar.xz nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.tar.zst nixpkgs-9eb067b0d7ea796f2c7c3b8b6a870e320e90863c.zip |
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.
Diffstat (limited to 'nixos/modules/services/networking/smokeping.nix')
-rw-r--r-- | nixos/modules/services/networking/smokeping.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/smokeping.nix b/nixos/modules/services/networking/smokeping.nix index d4d0594a9cd..49080cf4820 100644 --- a/nixos/modules/services/networking/smokeping.nix +++ b/nixos/modules/services/networking/smokeping.nix @@ -299,7 +299,8 @@ in mkdir -m 0755 -p ${smokepingHome}/cache ${smokepingHome}/data rm -f ${smokepingHome}/cropper ln -s ${cfg.package}/htdocs/cropper ${smokepingHome}/cropper - cp ${cgiHome} ${smokepingHome}/smokeping.fcgi + rm -f ${smokepingHome}/smokeping.fcgi + ln -s ${cgiHome} ${smokepingHome}/smokeping.fcgi ${cfg.package}/bin/smokeping --check --config=${configPath} ${cfg.package}/bin/smokeping --static --config=${configPath} ''; |