[icinga-checkins] icinga.org: docker-icinga2/master: use double brackets

git at icinga.org git at icinga.org
Sun Feb 14 16:25:36 CET 2016


Module: docker-icinga2
Branch: master
Commit: d56b4f4e496353c56f8cb264ae6ec71dd85d36de
URL:    https://git.icinga.org/?p=docker-icinga2.git;a=commit;h=d56b4f4e496353c56f8cb264ae6ec71dd85d36de

Author: Ruggero Marchei <ruggero.marchei at daemonzone.net>
Date:   Sat Feb  6 17:45:23 2016 +0100

use double brackets

otherwise it is always evaluated as true

Signed-off-by: Michael Friedrich <michael.friedrich at netways.de>

---

 content/opt/icinga2/initdocker |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/opt/icinga2/initdocker b/content/opt/icinga2/initdocker
index 2122bd6..9775045 100755
--- a/content/opt/icinga2/initdocker
+++ b/content/opt/icinga2/initdocker
@@ -67,7 +67,7 @@ if [ ! -f "${initfile}" ]; then
         touch ${initfile}
 fi
 
-if [ -n $ICINGA2_FEATURE_GRAPHITE ]; then
+if [[ -n $ICINGA2_FEATURE_GRAPHITE ]]; then
   echo_log "Enabling Icinga 2 Graphite feature."
   icinga2 feature enable graphite
 



More information about the icinga-checkins mailing list