Skip to content

Commit dbb74b4

Browse files
author
Kristan Kenney
committed
Update mail templates before rebuild
1 parent b200398 commit dbb74b4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/v-rebuild-mail-domains

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ U_MAIL_ACCOUNTS=0
4444
SUSPENDED_MAIL=0
4545
U_DISK_MAIL=0
4646

47+
# Update mail templates
48+
$BIN/v-update-mail-templates
49+
4750
# Checking mail folder
4851
if [ ! -d "$USER_DATA/mail" ]; then
4952
rm -f $USER_DATA/mail
@@ -54,8 +57,8 @@ fi
5457
for domain in $(search_objects 'mail' 'SUSPENDED' "*" 'DOMAIN'); do
5558
rebuild_mail_domain_conf
5659
if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
57-
$BIN/v-delete-webmail $1 $domain ''
58-
$BIN/v-add-webmail $1 $domain ''
60+
$BIN/v-delete-webmail $user $domain ''
61+
$BIN/v-add-webmail $user $domain ''
5962
sleep 0.5
6063
fi
6164
done

0 commit comments

Comments
 (0)