Set parameter of zabbix only if not empty

1.0
Lukas Macura 2016-04-04 16:52:23 +02:00
parent ce4559feaa
commit ee06971e3a
1 changed files with 1 additions and 1 deletions

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