Просмотр исходного кода

Fix issue #1139 (#2212)

* Fix issue #1139

By force rebuilding webmail config files

* Also close #2191
Jaap Marcus 4 лет назад
Родитель
Сommit
65bf9c1cc6
3 измененных файлов с 14 добавлено и 1 удалено
  1. 2 1
      CHANGELOG.md
  2. 6 0
      bin/v-change-web-domain-ip
  3. 6 0
      bin/v-update-sys-ip

+ 2 - 1
CHANGELOG.md

@@ -22,10 +22,11 @@ All notable changes to this project will be documented in this file.
 - Add Download SSL certificate function for self generated ssl certificates #2181
 - Block access to .user.ini for Nginx + Apache2 #2179
 - Add support for download B2 backup to local server to allow for restore #2199
-- Update permissions /var/kog/roundcube on older installations #2173
+- Update permissions /var/log/roundcube on older installations #2173
 - Update translations
 - Fix Roundcube permissions
 - Add webp to list of media formats that can be cached by the browser 
+- Fix #1139 By force rebuilding webmail config files
 
 ### Dependencies
 

+ 6 - 0
bin/v-change-web-domain-ip

@@ -77,6 +77,12 @@ if [ -n "$PROXY_SYSTEM" ] && [ -n "$PROXY" ]; then
     fi
 fi
 
+# Check for webmail
+if [ -n "$IMAP_SYSTEM" ]; then
+    $BIN/v-rebuild-mail-domain "$user" "$domain"
+fi
+
+
 
 #----------------------------------------------------------#
 #                       Hestia                             #

+ 6 - 0
bin/v-update-sys-ip

@@ -78,6 +78,12 @@ if [ ! -z "$new" ]; then
         $BIN/v-restart-proxy
         $BIN/v-restart-web
     fi
+    
+    if [ -n "$IMAP_SYSTEM" ]; then
+        for user in $($HESTIA/bin/v-list-sys-users plain); do
+            $BIN/v-rebuild-mail-domains "$user" no
+        done
+    fi
 
     # Updating DNS
     if [ ! -z "$DNS_SYSTEM" ]; then