Browse Source

Check for WEBMAIL_SYSTEM

Ernesto Nicolás Carrea 5 years ago
parent
commit
19e1e243d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-rebuild-mail-domains

+ 1 - 1
bin/v-rebuild-mail-domains

@@ -60,7 +60,7 @@ U_DISK_MAIL=0
 for domain in $(search_objects 'mail' 'SUSPENDED' "*" 'DOMAIN'); do
 for domain in $(search_objects 'mail' 'SUSPENDED' "*" 'DOMAIN'); do
     rebuild_mail_domain_conf
     rebuild_mail_domain_conf
     if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
     if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
-        if [ ! -z "$IMAP_SYSTEM" ]; then
+        if [ ! -z "$IMAP_SYSTEM" ] && [ ! -z "$WEBMAIL_SYSTEM" ]; then
             $BIN/v-delete-sys-webmail $user $domain '' 'yes'
             $BIN/v-delete-sys-webmail $user $domain '' 'yes'
             $BIN/v-add-sys-webmail $user $domain '' 'yes'
             $BIN/v-add-sys-webmail $user $domain '' 'yes'
         fi
         fi