mirror of
https://github.com/limosek/zaf.git
synced 2024-11-14 06:29:07 +01:00
Set parameter of zabbix only if not empty
This commit is contained in:
parent
ce4559feaa
commit
ee06971e3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user