Skip to content

Commit 52e80b0

Browse files
committed
Fix: rebuild webmail config after updating email templates
1 parent 382b3c3 commit 52e80b0

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/v-rebuild-mail-domains

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ U_MAIL_SSL=0
4545
SUSPENDED_MAIL=0
4646
U_DISK_MAIL=0
4747

48-
# Update mail templates
49-
$BIN/v-update-mail-templates
50-
5148
# Checking mail folder
5249
if [ ! -d "$USER_DATA/mail" ]; then
5350
rm -f $USER_DATA/mail

bin/v-update-mail-templates

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ fi
4040
# Update templates
4141
cp -rf $HESTIA/install/$type/templates/mail $HESTIA/data/templates/
4242

43+
# Rebuilding mail domains
44+
for user in $($BIN/v-list-sys-users plain); do
45+
$BIN/v-rebuild-mail-domains $user no
46+
done
47+
4348
#----------------------------------------------------------#
4449
# Hestia #
4550
#----------------------------------------------------------#

0 commit comments

Comments
 (0)