mirror of
https://github.com/limosek/zaf.git
synced 2024-11-25 03:49:06 +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."
|
zaf_wrn "Moving option $option to zaf config part."
|
||||||
sed -i "s/$option=/#$option=/" $ZAF_AGENT_CONFIG
|
sed -i "s/$option=/#$option=/" $ZAF_AGENT_CONFIG
|
||||||
fi
|
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
|
# Automaticaly configure agent if supported
|
||||||
|
Loading…
Reference in New Issue
Block a user