Browse Source

Update 'groupwise.sh'

Corrected logic for gwMTA
Michael Honkoop 1 year ago
parent
commit
55c82f4b2d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      groupwise.sh

+ 2 - 2
groupwise.sh

@@ -26,8 +26,6 @@ then
     if [ $debug -eq 1 ]
     then
         echo "DEBUG: gwMTA is enabled in config, checking for the process."
-    else
-        echo "DEBUG: gwMTA is not enabled in config, skipping."
     fi
     gwMTAProcess=$(ps -ef | grep "gwmta" | grep -v grep | awk '{print $2}')
     if [ ! -z "$gwMTAProcess" ]
@@ -58,6 +56,8 @@ then
         fi
         echo "P \"GroupWise MTA\" status=0;;;1 GroupWise Mail Transfer Agemt process is not Running."
     fi
+else
+    echo "DEBUG: gwMTA is not enabled in config, skipping."
 fi
 
 if [ $gwPOA -eq 1 ]