1
0
mirror of https://github.com/limosek/zaf.git synced 2024-11-13 05:59:06 +01:00

Repaired setting option

This commit is contained in:
Lukas Macura 2016-11-26 17:52:00 +01:00
parent ce843ddd55
commit 375f805b6a

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