Explorar el Código

Fix webmail config rebuild when restoring domain backup

Robert Zollner hace 6 años
padre
commit
bdc167c1f9
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      bin/v-restore-user

+ 9 - 1
bin/v-restore-user

@@ -588,7 +588,7 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
         cp -f $tmpdir/mail/$domain/$backup_system/$domain.conf $USER_DATA/mail/
         cp -f $tmpdir/mail/$domain/$backup_system/$domain.conf $USER_DATA/mail/
 
 
         # Rebuilding mail config
         # Rebuilding mail config
-        rebuild_mail_domain_conf
+        v-rebuild-mail-domains $user
         
         
         domain_idn=$domain
         domain_idn=$domain
         format_domain_idn
         format_domain_idn
@@ -617,6 +617,14 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
             -exec chown $exim_user {} \;
             -exec chown $exim_user {} \;
 
 
     done
     done
+
+    # Restarting web server
+    $BIN/v-restart-web
+    check_result $? "Web restart failed"
+    if [ ! -z "$PROXY_SYSTEM" ]; then
+        $BIN/v-restart-proxy
+        check_result $? "Proxy restart failed"
+    fi
 fi
 fi
 
 
 # Restoring databases
 # Restoring databases