diff --git a/build.sh b/build.sh index 5f0b4ee..2be497e 100755 --- a/build.sh +++ b/build.sh @@ -367,7 +367,7 @@ if [ -f "$ZABBIX_CONF_SRC" ]; then sudo chmod 644 "$ZABBIX_CONF_DST" echo " Installed: $ZABBIX_CONF_DST" # Try common zabbix agent service names - local restarted=false + restarted=false for svc in zabbix_agentd zabbix-agent zabbix-agent2; do if systemctl is-active "$svc" >/dev/null 2>&1; then sudo systemctl restart "$svc"