From 9b190e57ea41579120e66dbd726faa902081dcce Mon Sep 17 00:00:00 2001 From: Lukas Macura Date: Thu, 7 Apr 2016 13:20:55 +0200 Subject: [PATCH] Minor changes --- Makefile | 4 ++++ install.sh | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 072b824..3209a61 100644 --- a/Makefile +++ b/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 + diff --git a/install.sh b/install.sh index c02c64c..51269c9 100755 --- a/install.sh +++ b/install.sh @@ -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