From d914e0c81e016d2eca990cdb3b0259b5d999b92b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=B6chlin?= Date: Fri, 17 May 2024 09:54:04 +0200 Subject: [PATCH] Bugfix postinstall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Schöchlin --- extension-files/postinstall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension-files/postinstall b/extension-files/postinstall index 604f0d6..3c01952 100644 --- a/extension-files/postinstall +++ b/extension-files/postinstall @@ -19,7 +19,7 @@ if (grep -q -P "Ubuntu|Debian|CentOS|Raspbian" /etc/os-release);then echo "" >> /etc/zabbix/$AGENT_CONF echo "#################################################################" >> /etc/zabbix/$AGENT_CONF echo "# Added by postinstall of package zabbix-agent-extensions" >> /etc/zabbix/$AGENT_CONF - echo "$THE_INCLUDE" >> /etc/zabbix/$AGENT_CONF_CONF + echo "$THE_INCLUDE" >> /etc/zabbix/$AGENT_CONF fi @@ -40,7 +40,7 @@ if (grep -q -P "Ubuntu|Debian|CentOS|Raspbian" /etc/os-release);then mkdir -m 755 -p /etc/zabbix/zabbix-discovery-generic chown zabbix:zabbix /etc/zabbix/zabbix-discovery-generic - + if (which systemctl >/dev/null 2>&1);then echo "Restarting with systemctl" systemctl restart $AGENT.service