Skip to content

Commit c00edb6

Browse files
author
Kristan Kenney
committed
Configure webmail alias only if Roundcube is installed
1 parent ea060ae commit c00edb6

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

install/hst-install-debian.sh

Lines changed: 10 additions & 1 deletion
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
@@ -1553,6 +1552,16 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = '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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,12 @@ if [ "$dovecot" = 'yes' ] && [ "$exim" = '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)