From 412bc2e17755b4c9987ae43a072b5724d0b30816 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 9 Jan 2012 11:48:11 +0100 Subject: [PATCH] enable notification only from some point --- libraries/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/common b/libraries/common index cc56af8..703bdac 100644 --- a/libraries/common +++ b/libraries/common @@ -51,7 +51,7 @@ function checkVersion() { # Parameters: %message% %code% #------------------------------------------------------------------------------- function die() { - if isEnabled ${LOGGING} && isSet NOTIFY; then + if isEnabled ${LOGGING} && isSet NOTIFY && isEnabled ${EZNOTIFY}; then local LOGS="Full output from logs:\n\n$(cat ${LOGFILE})" local MESG="The ${EZNAME} has failed with code: ${2} and message: ${1}" local TOPIC="The ${EZNAME} process has failed!"