From 52188a4cbf2e5bbc09c0d7c8a8a328a0c1a74a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janne=20He=C3=9F?= Date: Fri, 19 Nov 2021 11:46:51 +0100 Subject: [PATCH] icinga2: Fix path to icinga2 binary I broke it in my LTO PR :-( --- pkgs/servers/monitoring/icinga2/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/monitoring/icinga2/default.nix b/pkgs/servers/monitoring/icinga2/default.nix index b85cccf18386..f1ba40574837 100644 --- a/pkgs/servers/monitoring/icinga2/default.nix +++ b/pkgs/servers/monitoring/icinga2/default.nix @@ -70,7 +70,7 @@ stdenv.mkDerivation rec { # Get rid of sbin sed -i 's/sbin/bin/g' $out/lib/icinga2/safe-reload - sed -i 's/sbin/bin/g' $out/bin/icinga2 + sed -i "2s:.*:ICINGA2_BIN=$out/bin/icinga2:" $out/bin/icinga2 rm $out/sbin ${lib.optionalString withMysql ''