Browse Source

Fix error: Error: IMAP_SYSTEM is not enabled

On Exim only domains
Jaap Marcus 4 years ago
parent
commit
86d6aa141d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      bin/v-delete-mail-domain

+ 3 - 1
bin/v-delete-mail-domain

@@ -75,7 +75,9 @@ fi
 
 
 # Delete webmail configuration if it exists
 # Delete webmail configuration if it exists
 if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
 if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
-    $BIN/v-delete-mail-domain-webmail $user $domain 'yes'
+    if [ ! -z "$IMAP_SYSTEM" ]; then
+        $BIN/v-delete-mail-domain-webmail $user $domain 'yes'    
+    fi
 fi
 fi
 
 
 #----------------------------------------------------------#
 #----------------------------------------------------------#