Skip to content

Commit

Permalink
Merge pull request #71137 from erictapen/smokeping-fix-permission
Browse files Browse the repository at this point in the history
nixos/smokeping: replace smokeping.fcgi with a symlink
  • Loading branch information
wizeman committed Oct 23, 2019
2 parents 7e7ef31 + b8cd11f commit 4cd2cb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nixos/modules/services/networking/smokeping.nix
Expand Up @@ -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}
'';
Expand All @@ -314,5 +315,7 @@ in
serviceConfig.Restart = "always";
};
};

meta.maintainers = with lib.maintainers; [ erictapen ];
}

1 change: 1 addition & 0 deletions pkgs/tools/networking/smokeping/default.nix
Expand Up @@ -19,5 +19,6 @@ stdenv.mkDerivation rec {
homepage = http://oss.oetiker.ch/smokeping;
license = stdenv.lib.licenses.gpl2Plus;
platforms = stdenv.lib.platforms.all;
maintainers = [ stdenv.lib.maintainers.erictapen ];
};
}

0 comments on commit 4cd2cb4

Please sign in to comment.