From ee06971e3a1f17427c1022b2ec1f09e2dfe655b2 Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Mon, 4 Apr 2016 16:52:23 +0200 Subject: [PATCH] Set parameter of zabbix only if not empty --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 37dcf8f..903353e 100755 --- a/install.sh +++ b/install.sh @@ -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