mirror of
https://github.com/limosek/zaf.git
synced 2024-11-24 03:19:05 +01:00
Minor changes
This commit is contained in:
parent
ea6bf3d83a
commit
9b190e57ea
4
Makefile
4
Makefile
@ -71,4 +71,8 @@ deb-changelog:
|
||||
|
||||
deb-package:
|
||||
@dpkg-deb -b $(DEBIAN_DIR) $(DEBIAN_PKG)
|
||||
@echo "\nCheck configuration:"
|
||||
@cat $(DEBIAN_DIR)/etc/zaf.conf
|
||||
@echo
|
||||
|
||||
|
||||
|
@ -111,7 +111,7 @@ zaf_set_option(){
|
||||
zaf_set_agent_option() {
|
||||
local option="$1"
|
||||
local value="$2"
|
||||
if grep ^$option\= $ZAF_AGENT_CONFIG; then
|
||||
if grep -q ^$option\= $ZAF_AGENT_CONFIG; then
|
||||
zaf_dbg "Setting option $option in $ZAF_AGENT_CONFIG."
|
||||
sed -i "s/$option=(.*)/$option=$2/" $ZAF_AGENT_CONFIG
|
||||
fi
|
||||
@ -135,7 +135,7 @@ zaf_add_agent_option() {
|
||||
zaf_move_agent_option() {
|
||||
local option="$1"
|
||||
local value="$2"
|
||||
if grep ^$option\= $ZAF_AGENT_CONFIG; then
|
||||
if grep -q ^$option\= $ZAF_AGENT_CONFIG; then
|
||||
zaf_dbg "Moving option $option from $ZAF_AGENT_CONFIG to ."
|
||||
sed -i "s/$option=(.*)/$option=$2/" $ZAF_AGENT_CONFIG
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user