Skip to content

Commit 3acf161

Browse files
author
Kristan Kenney
committed
Merge branch 'bugfix-installer' into develop
2 parents 37e30a5 + 4425831 commit 3acf161

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

bin/v-change-sys-port

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ if [ "$ORIGINAL_PORT" = "$PORT" ]; then
7272
else
7373
# Replace port in config files.
7474
sed -i "/listen/c\ listen $PORT ssl;" $HESTIA/nginx/conf/nginx.conf
75-
sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
75+
if [ -d /etc/roundcube/ ]; then
76+
sed -i "/password_hestia_port/c\$rcmail_config['password_hestia_port'] = '$PORT';" /etc/roundcube/plugins/password/config.inc.php
77+
fi
7678
sed -i "/COMMENT='HESTIA'/c\RULE='2' ACTION='ACCEPT' PROTOCOL='TCP' PORT='$PORT' IP='0.0.0.0/0' COMMENT='HESTIA' SUSPENDED='no' TIME='07:40:16' DATE='2014-05-25'" $HESTIA/data/firewall/rules.conf
7779

7880
# Restart services

install/hst-install-debian.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,6 @@ fi
10311031
# Mail stack
10321032
if [ "$exim" = 'yes' ]; then
10331033
echo "MAIL_SYSTEM='exim4'" >> $HESTIA/conf/hestia.conf
1034-
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
10351034
if [ "$clamd" = 'yes' ]; then
10361035
echo "ANTIVIRUS_SYSTEM='clamav-daemon'" >> $HESTIA/conf/hestia.conf
10371036
fi
@@ -1501,7 +1500,7 @@ fi
15011500
# Configure Roundcube #
15021501
#----------------------------------------------------------#
15031502

1504-
if [ "$dovecot" = 'yes' ] && [ "$mysql" = 'yes' ]; then
1503+
if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15051504
if [ "$apache" = 'yes' ]; then
15061505
cp -f $hestiacp/roundcube/apache.conf /etc/roundcube/
15071506
ln -s /etc/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf
@@ -1553,6 +1552,16 @@ if [ "$dovecot" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15531552
fi
15541553
fi
15551554
fi
1555+
# Configure webmail alias
1556+
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
1557+
1558+
# Restart services
1559+
if [ "$apache" = 'yes' ]; then
1560+
service apache2 restart
1561+
fi
1562+
if [ "$nginx" = 'yes' ]; then
1563+
service nginx restart
1564+
fi
15561565
fi
15571566

15581567

install/hst-install-ubuntu.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ fi
14551455
# Configure Roundcube #
14561456
#----------------------------------------------------------#
14571457

1458-
if [ "$dovecot" = 'yes' ] && [ "$mysql" = 'yes' ]; then
1458+
if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
14591459
if [ "$apache" = 'yes' ]; then
14601460
cp -f $hestiacp/roundcube/apache.conf /etc/roundcube/
14611461
ln -s /etc/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf
@@ -1483,7 +1483,12 @@ if [ "$dovecot" = 'yes' ] && [ "$mysql" = 'yes' ]; then
14831483
sed -i "s/localhost/$servername/g" /etc/roundcube/plugins/password/config.inc.php
14841484
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
14851485

1486+
# Configure webmail alias
1487+
echo "WEBMAIL_ALIAS='webmail'" >> $HESTIA/conf/hestia.conf
1488+
14861489
phpenmod mcrypt > /dev/null 2>&1
1490+
1491+
# Restart services
14871492
if [ "$apache" = 'yes' ]; then
14881493
service apache2 restart
14891494
fi

0 commit comments

Comments
 (0)