Skip to content

Commit 2e9f917

Browse files
author
Kristan Kenney
committed
Add webmail to rebuild routine
1 parent 06408c4 commit 2e9f917

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

func/rebuild.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ rebuild_dns_domain_conf() {
439439

440440
# MAIL domain rebuild
441441
rebuild_mail_domain_conf() {
442-
442+
get_domain_values 'web'
443443
get_domain_values 'mail'
444444

445445
if [[ "$domain" = *[![:ascii:]]* ]]; then
@@ -505,10 +505,20 @@ rebuild_mail_domain_conf() {
505505
del_mail_ssl_config
506506
add_mail_ssl_config
507507

508+
add_webmail_config '$WEB_SYSTEM' 'default.stpl'
509+
508510
# Update counters
509511
update_object_value 'mail' 'DOMAIN' "$domain" '$SSL' "yes"
510512
U_MAIL_SSL=$((U_MAIL_SSL + 1))
511513
fi
514+
515+
# Add webmail configuration
516+
if [ ! -z "$WEB_SYSTEM" ]; then
517+
add_webmail_config '$WEB_SYSTEM' 'default.tpl'
518+
fi
519+
if [ ! -z "PROXY_SYSTEM" ]; then
520+
add_webmail_config 'PROXY_SYSTEM' 'default.tpl'
521+
fi
512522
fi
513523

514524
# Rebuild domain accounts

0 commit comments

Comments
 (0)