1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-24 19:39:08 +01:00

Set parameter of zabbix only if not empty

This commit is contained in:
Lukas Macura 2016-04-04 16:52:23 +02:00
parent ce4559feaa
commit ee06971e3a

View File

@ -114,7 +114,7 @@ zaf_set_agent_option() {
zaf_wrn "Moving option $option to zaf config part."
sed -i "s/$option=/#$option=/" $ZAF_AGENT_CONFIG
fi
echo "$option=$value" >> "$ZAF_AGENT_CONFIGD/zaf_options.conf"
[ -n "$2" ] && echo "$option=$value" >> "$ZAF_AGENT_CONFIGD/zaf_options.conf"
}
# Automaticaly configure agent if supported