Repaired setting option

1.3
Lukas Macura 2016-11-26 17:52:00 +01:00
parent ce843ddd55
commit 375f805b6a
1 changed files with 2 additions and 2 deletions

View File

@ -104,8 +104,8 @@ zaf_set_zabbix_option() {
local option="$2"
local value="$3"
if grep -q ^$option\= $cfgfile; then
zaf_dbg "Setting option $option in $cfgfile."
sed -i "s/$option=\(.*\)/$option=$2/" $cfgfile
zaf_dbg "Setting option $option in $cfgfile to $3."
sed -i "s/$option=\(.*\)/$option=$value/" $cfgfile
else
zaf_move_zabbix_option "$1" "$2" "$3"
fi