File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed
Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,9 @@ if [ "$ORIGINAL_PORT" = "$PORT" ]; then
7272else
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
Original file line number Diff line number Diff line change 10311031# Mail stack
10321032if [ " $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
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
15561565fi
15571566
15581567
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments