Skip to content

Commit e29db56

Browse files
author
Kristan Kenney
committed
Update v-add-mail-domain-ssl to support SSL webmail
1 parent 5498821 commit e29db56

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

bin/v-add-mail-domain-ssl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,22 @@ is_web_domain_cert_valid
6565
# Call routine to add SSL configuration to mail domain
6666
add_mail_ssl_config
6767

68+
# Add webmail configuration to mail domain
69+
if [ ! -z "$WEB_SYSTEM" ]; then
70+
add_webmail_config "$WEB_SYSTEM" "default.stpl"
71+
fi
72+
if [ ! -z "$PROXY_SYSTEM" ]; then
73+
add_webmail_config "$PROXY_SYSTEM" "default.stpl"
74+
fi
75+
6876
# Increase value for domain
6977
increase_user_value "$user" '$U_MAIL_SSL'
7078

7179
# Set SSL as enabled in configuration
7280
update_object_value 'mail' 'DOMAIN' "$domain" '$SSL' "yes"
7381

74-
# Refresh webmail configuration
75-
if [ ! -z "$WEB_SYSTEM" ]; then
76-
add_ssl_webmail_config
7782

78-
# Restart web services for webmail changes to take effect
79-
$BIN/v-restart-web $restart
80-
$BIN/v-restart-proxy $restart
81-
fi
83+
8284

8385
#----------------------------------------------------------#
8486
# Hestia #

0 commit comments

Comments
 (0)