1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zabbix_ynh.git synced 2024-09-03 20:36:14 +02:00

restart agent after timeout reconfig

This commit is contained in:
Mickael-Martin 2019-04-11 23:30:55 +02:00
parent 5af820fd8e
commit 1b3f6466c9

View file

@ -107,6 +107,7 @@ fi
timeout_ok=$(grep -c "^Timeout" /etc/zabbix/zabbix_agentd.conf 2>/dev/null)
if [ $timeout_ok -ne 1 ] ;then
ynh_replace_string --match_string="# Timeout=3" --replace_string="# Timeout=3\nTimeout=10" --target_file=/etc/zabbix/zabbix_agentd.conf
systemctl enable zabbix-agent && systemctl restart zabbix-agent
fi
#=================================================