Skip to content

Commit e988e12

Browse files
author
Kristan Kenney
committed
Disable global webmail subfolder alias
Removed in favor of subdomain routine implemented previously.
1 parent 0062d02 commit e988e12

File tree

4 files changed

+9
-24
lines changed

4 files changed

+9
-24
lines changed

bin/v-change-sys-webmail

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,6 @@ for user in $($HESTIA/bin/v-list-sys-users plain); do
4545
done
4646
done
4747

48-
# Update global directory alias configuration
49-
if [ "$WEB_SYSTEM" = "apache2" ]; then
50-
sed -i "s|Alias \/$OLD_ALIAS|Alias \/$NEW_ALIAS|gI" /etc/apache2/conf.d/roundcube.conf
51-
fi
52-
if [ -e "/etc/nginx/conf.d/webmail.inc" ]; then
53-
sed -i "s|location \/$OLD_ALIAS|location \/$NEW_ALIAS|gI" /etc/nginx/conf.d/webmail.inc
54-
sed -i "s|location ~ ^\/$OLD_ALIAS|location ~ ^\/$NEW_ALIAS|gI" /etc/nginx/conf.d/webmail.inc
55-
fi
56-
5748
#----------------------------------------------------------#
5849
# Hestia #
5950
#----------------------------------------------------------#

install/hst-install-debian.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,13 +1523,6 @@ fi
15231523

15241524
if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
15251525
echo "(*) Configuring Roundcube webmail client..."
1526-
if [ "$apache" = 'yes' ]; then
1527-
cp -f $HESTIA_INSTALL_DIR/roundcube/apache.conf /etc/roundcube/
1528-
ln -s /etc/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf
1529-
fi
1530-
if [ "$nginx" = 'yes' ]; then
1531-
cp -f $HESTIA_INSTALL_DIR/nginx/webmail.inc /etc/nginx/conf.d/
1532-
fi
15331526
cp -f $HESTIA_INSTALL_DIR/roundcube/main.inc.php /etc/roundcube/config.inc.php
15341527
cp -f $HESTIA_INSTALL_DIR/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
15351528
cp -f $HESTIA_INSTALL_DIR/roundcube/config.inc.php /etc/roundcube/plugins/password/

install/hst-install-ubuntu.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,13 +1484,6 @@ fi
14841484

14851485
if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
14861486
echo "(*) Configuring Roundcube webmail client..."
1487-
if [ "$apache" = 'yes' ]; then
1488-
cp -f $HESTIA_INSTALL_DIR/roundcube/apache.conf /etc/roundcube/
1489-
ln -s /etc/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf
1490-
fi
1491-
if [ "$nginx" = 'yes' ]; then
1492-
cp -f $HESTIA_INSTALL_DIR/nginx/webmail.inc /etc/nginx/conf.d/
1493-
fi
14941487
cp -f $HESTIA_INSTALL_DIR/roundcube/main.inc.php /etc/roundcube/config.inc.php
14951488
cp -f $HESTIA_INSTALL_DIR/roundcube/db.inc.php /etc/roundcube/debian-db-roundcube.php
14961489
cp -f $HESTIA_INSTALL_DIR/roundcube/config.inc.php /etc/roundcube/plugins/password/

install/upgrade/versions/latest.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,12 @@ if [ "$num_php_versions" -gt 1 ] && [ -z "$WEB_BACKEND" ]; then
212212
echo "(*) Migrate to new multiphp backend system..."
213213
cp -rf $HESTIA/data/templates/web $HESTIA_BACKUP/templates/web
214214
bash $HESTIA/install/upgrade/manual/migrate_multiphp.sh > /dev/null 2>&1
215-
fi
215+
fi
216+
217+
# Disable global subfolder alias for webmail in favor of subdomain
218+
if [ -e /etc/nginx/conf.d/webmail.inc ]; then
219+
rm -f /etc/nginx/conf.d/webmail.inc
220+
fi
221+
if [ -e /etc/apache2/conf.d/roundcube.conf ]; then
222+
rm -f /etc/apache2/conf.d/roundcube.conf
223+
fi

0 commit comments

Comments
 (0)