Skip to content

Commit 5bd65e2

Browse files
author
Kristan Kenney
committed
Change webmail routine in v-add-mail-domain
Call v-add-webmail script which references the necessary routines instead of calling the routines directly.
1 parent 75f3b34 commit 5bd65e2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

bin/v-add-mail-domain

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,10 @@ if [ ! -z "$DNS_SYSTEM" ] && [ "$dkim" = 'yes' ]; then
128128
fi
129129

130130
# Add webmail configuration to mail domain
131-
WEBMAIL_TEMPLATE="default"
132-
if [ "$WEB_SYSTEM" = "nginx" ]; then
133-
WEBMAIL_TEMPLATE="web_system"
131+
if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
132+
$BIN/v-add-webmail $user $domain ''
134133
fi
135-
add_webmail_config "$WEB_SYSTEM" "${WEBMAIL_TEMPLATE}.tpl"
136-
137-
if [ ! -z "$PROXY_SYSTEM" ]; then
138-
add_webmail_config "$PROXY_SYSTEM" "default.tpl"
139-
fi
140-
134+
141135
#----------------------------------------------------------#
142136
# Hestia #
143137
#----------------------------------------------------------#

0 commit comments

Comments
 (0)