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

Fix: rebuild webmail config after updating email templates

Robert Zollner 6 лет назад
Родитель
Сommit
52e80b0c22
2 измененных файлов с 5 добавлено и 3 удалено
  1. 0 3
      bin/v-rebuild-mail-domains
  2. 5 0
      bin/v-update-mail-templates

+ 0 - 3
bin/v-rebuild-mail-domains

@@ -45,9 +45,6 @@ U_MAIL_SSL=0
 SUSPENDED_MAIL=0
 U_DISK_MAIL=0
 
-# Update mail templates
-$BIN/v-update-mail-templates
-
 # Checking mail folder
 if [ ! -d "$USER_DATA/mail" ]; then
     rm -f $USER_DATA/mail

+ 5 - 0
bin/v-update-mail-templates

@@ -40,6 +40,11 @@ fi
 # Update templates
 cp -rf $HESTIA/install/$type/templates/mail $HESTIA/data/templates/
 
+# Rebuilding mail domains
+for user in $($BIN/v-list-sys-users plain); do
+    $BIN/v-rebuild-mail-domains $user no
+done
+
 #----------------------------------------------------------#
 #                       Hestia                             #
 #----------------------------------------------------------#