From 99e37419573318a1882ec5930c1dd6aec4512940 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Tue, 1 Jun 2021 14:00:26 -0400 Subject: [PATCH] zabbix.agent2: create a symlink which is compatible with the zabbixAgent module --- pkgs/servers/monitoring/zabbix/agent2.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/monitoring/zabbix/agent2.nix b/pkgs/servers/monitoring/zabbix/agent2.nix index 1deada436374..98fafa4265d6 100644 --- a/pkgs/servers/monitoring/zabbix/agent2.nix +++ b/pkgs/servers/monitoring/zabbix/agent2.nix @@ -46,8 +46,13 @@ import ./versions.nix ({ version, sha256 }: ''; installPhase = '' + mkdir -p $out/sbin + install -Dm0644 src/go/conf/zabbix_agent2.conf $out/etc/zabbix_agent2.conf install -Dm0755 src/go/bin/zabbix_agent2 $out/bin/zabbix_agent2 + + # create a symlink which is compatible with the zabbixAgent module + ln -s $out/bin/zabbix_agent2 $out/sbin/zabbix_agentd ''; meta = with lib; {