Skip to content

Commit f08af08

Browse files
author
Kristan Kenney
committed
Enable webmail access when unsuspending mail domain
1 parent a4386b2 commit f08af08

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-unsuspend-mail-domain

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ if [[ "$MAIL_SYSTEM" =~ exim ]]; then
4646
ln -s $HOMEDIR/$user/conf/mail/$domain /etc/$MAIL_SYSTEM/domains/
4747
fi
4848

49-
# Enable webmail access
50-
$BIN/v-add-webmail $user $domain 'yes'
51-
5249
#----------------------------------------------------------#
5350
# Hestia #
5451
#----------------------------------------------------------#
@@ -58,6 +55,9 @@ update_object_value 'mail' 'DOMAIN' "$domain" '$SUSPENDED' 'no'
5855
sed -i "s/SUSPENDED='yes'/SUSPENDED='no'/g" $USER_DATA/mail/$domain.conf
5956
decrease_user_value "$user" '$SUSPENDED_MAIL'
6057

58+
# Enable webmail access
59+
$BIN/v-add-webmail $user $domain 'yes'
60+
6161
# Logging
6262
log_event "$OK" "$ARGUMENTS"
6363

0 commit comments

Comments
 (0)