Skip to content

Commit cd0ea19

Browse files
authored
Fix hestiacp#3419 Custom webmail clients (hestiacp#3420)
1 parent edccd4f commit cd0ea19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/v-add-mail-domain-webmail

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ else
132132
if [ "$WEB_SYSTEM" = "nginx" ]; then
133133
WEBMAIL_TEMPLATE="web_system"
134134
fi
135-
elif [ "$webmail" == "rainloop" ]; then
136-
WEBMAIL_TEMPLATE="rainloop"
135+
elif [ -f "$HESTIA/data/templates/mail/$WEB_SYSTEM/$webmail.tpl" ]; then
136+
WEBMAIL_TEMPLATE="$webmail"
137137
if [ -n "$PROXY_SYSTEM" ]; then
138-
PROXY_TEMPLATE="default_rainloop"
138+
PROXY_TEMPLATE="default_$webmail"
139139
fi
140140
else
141141
WEBMAIL_TEMPLATE="disabled"

0 commit comments

Comments
 (0)