Skip to content

Commit

Permalink
Bugfix postinstall
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schöchlin <[email protected]>
  • Loading branch information
scoopex committed May 17, 2024
1 parent cd6c97d commit d914e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension-files/postinstall
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit d914e0c

Please sign in to comment.