Skip to content

Commit 7a0c8b4

Browse files
author
Kristan Kenney
committed
Fix bug in upgrade script
1 parent 3aac247 commit 7a0c8b4

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

install/deb/nginx/webmail.inc

Lines changed: 0 additions & 15 deletions
This file was deleted.

install/upgrade/0.9.8-29.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,16 @@ if [ -f /etc/dovecot/dovecot.conf ]; then
174174
fi
175175

176176
# Update Roundcube webmail configuration
177-
if [ -f /etc/apache2/conf.d/webmail.conf ]; then
177+
if [ -f /etc/apache2/conf.d/roundcube.conf ]; then
178178
echo "(*) Updating Roundcube global subdomain configuration for apache2..."
179-
cp -f $HESTIA/install/deb/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf.conf
179+
cp -f $HESTIA/install/deb/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf
180180
fi
181-
if [ -f /etc/nginx/conf.d/webmail.inc ]; then
181+
182+
if [ ! -z "$PROXY_SYSTEM" ]; then
182183
echo "(*) Updating Roundcube global subdomain configuration for nginx..."
183-
rm -f /etc/nginx/conf.d/webmail.inc
184+
if [ -f /etc/nginx/conf.d/webmail.inc ]; then
185+
rm -f /etc/nginx/conf.d/webmail.inc
186+
fi
184187
cp -f $HESTIA/install/deb/nginx/webmail.conf /etc/nginx/conf.d/webmail.conf
185188
fi
186189

0 commit comments

Comments
 (0)