mirror of
https://github.com/limosek/zaf.git
synced 2024-11-21 18:09:06 +01:00
Repaired setting option
This commit is contained in:
parent
ce843ddd55
commit
375f805b6a
@ -104,8 +104,8 @@ zaf_set_zabbix_option() {
|
|||||||
local option="$2"
|
local option="$2"
|
||||||
local value="$3"
|
local value="$3"
|
||||||
if grep -q ^$option\= $cfgfile; then
|
if grep -q ^$option\= $cfgfile; then
|
||||||
zaf_dbg "Setting option $option in $cfgfile."
|
zaf_dbg "Setting option $option in $cfgfile to $3."
|
||||||
sed -i "s/$option=\(.*\)/$option=$2/" $cfgfile
|
sed -i "s/$option=\(.*\)/$option=$value/" $cfgfile
|
||||||
else
|
else
|
||||||
zaf_move_zabbix_option "$1" "$2" "$3"
|
zaf_move_zabbix_option "$1" "$2" "$3"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user