Skip to content

Commit 0197444

Browse files
authored
Merge pull request hestiacp#1983 from jaapmarcus/fix/1980-renew-ssl-bug-webmail
hestiacp#1980 Lets Encrypt Auto Renewal Reverts Webmail Client to Roundcube
2 parents d657f5a + e93fbca commit 0197444

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
1212
- Explicitly disable cron reports #1978
1313
- Fixed an issue where in rare cases certificate failed to install @dpeca and @myvesta
1414
- Fixed an issue where composer failed to install when .composer folder is missing
15+
- Fix #1980 Lets Encrypt Auto Renewal Reverts Webmail Client back to Roundcube
1516

1617
## [1.4.5] - Service release
1718

bin/v-add-mail-domain-ssl

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,32 @@ fi
7878
# Call routine to add SSL configuration to mail domain
7979
add_mail_ssl_config
8080

81-
# Add webmail configuration to mail domain
82-
WEBMAIL_TEMPLATE="default"
83-
if [ "$WEB_SYSTEM" = "nginx" ]; then
84-
WEBMAIL_TEMPLATE="web_system"
81+
if [ "$webmail" == "roundcube" ]; then
82+
WEBMAIL_TEMPLATE="default"
83+
if [ ! -z "$PROXY_SYSTEM" ]; then
84+
PROXY_TEMPLATE="default"
85+
fi
86+
# Add webmail configuration to mail domain
87+
WEBMAIL_TEMPLATE="default"
88+
if [ "$WEB_SYSTEM" = "nginx" ]; then
89+
WEBMAIL_TEMPLATE="web_system"
90+
fi
91+
elif [ "$webmail" == "rainloop" ]; then
92+
WEBMAIL_TEMPLATE="rainloop"
93+
if [ ! -z "$PROXY_SYSTEM" ]; then
94+
PROXY_TEMPLATE="default_rainloop"
95+
fi
96+
else
97+
WEBMAIL_TEMPLATE="disabled"
98+
if [ ! -z "$PROXY_SYSTEM" ]; then
99+
PROXY_TEMPLATE="default_disabled"
100+
fi
85101
fi
102+
86103
add_webmail_config "$WEB_SYSTEM" "${WEBMAIL_TEMPLATE}.stpl"
87104

88105
if [ ! -z "$PROXY_SYSTEM" ]; then
89-
add_webmail_config "$PROXY_SYSTEM" "default.stpl"
106+
add_webmail_config "$PROXY_SYSTEM" "${PROXY_TEMPLATE}.stpl"
90107
fi
91108

92109
# Increase value for domain

0 commit comments

Comments
 (0)