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

patch timeout zabbix agent if needed

This commit is contained in:
Mickael-Martin 2019-04-11 23:21:06 +02:00
parent 386adc6407
commit fbb980109b

View file

@ -103,6 +103,12 @@ if [ $(echo $nonfreepackagelist | wc -l) -eq 1 ] && [ $(echo $nonfreepackagelist
fi
fi
#Patch timeout too short for zabbix agent if needed
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
fi
#=================================================
# STANDARD UPGRADE STEPS
#=================================================