Skip to content

Commit 4cec15a

Browse files
author
Kristan Kenney
committed
Fix nginx webmail detection in upgrade routine
1 parent 63d7bb7 commit 4cec15a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install/upgrade/0.9.8-29.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fi
2929

3030
# Generating dhparam.
3131
if [ ! -e /etc/ssl/dhparam.pem ]; then
32-
echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support"
32+
echo "(*) Enabling HTTPS Strict Transport Security (HSTS) support..."
3333

3434
# Backup existing conf
3535
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bak
@@ -174,8 +174,9 @@ if [ -f /etc/apache2/conf.d/webmail.conf ]; then
174174
echo "(*) Updating Roundcube global subdomain configuration for apache2..."
175175
cp -f $HESTIA/install/deb/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf.conf
176176
fi
177-
if [ -f /etc/nginx/conf.d/webmail.conf ]; then
177+
if [ -f /etc/nginx/conf.d/webmail.inc ]; then
178178
echo "(*) Updating Roundcube global subdomain configuration for nginx..."
179+
rm -f /etc/nginx/conf.d/webmail.inc
179180
cp -f $HESTIA/install/deb/nginx/webmail.conf /etc/nginx/conf.d/webmail.conf
180181
fi
181182

0 commit comments

Comments
 (0)