Sfoglia il codice sorgente

Upgrade webmail virtual host configuration

Kristan Kenney 7 anni fa
parent
commit
e13dc3086f
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      install/upgrade/0.9.8-29.sh

+ 10 - 0
install/upgrade/0.9.8-29.sh

@@ -169,6 +169,16 @@ if [ -f /etc/dovecot/dovecot.conf ]; then
     sleep 0.5
     sleep 0.5
 fi
 fi
 
 
+# Update Roundcube webmail configuration
+if [ -f /etc/apache2/conf.d/webmail.conf ]; then
+    echo "(*) Updating Roundcube global subdomain configuration for apache2..."
+    cp -f $HESTIA/install/deb/roundcube/apache.conf /etc/apache2/conf.d/roundcube.conf.conf
+fi
+if [ -f /etc/nginx/conf.d/webmail.conf ]; then
+    echo "(*) Updating Roundcube global subdomain configuration for nginx..."
+    cp -f $HESTIA/install/deb/nginx/webmail.conf /etc/nginx/conf.d/webmail.conf
+fi
+
 # Add IMAP system variable to configuration if dovecot is installed
 # Add IMAP system variable to configuration if dovecot is installed
 if [ -z "$IMAP_SYSTEM" ]; then 
 if [ -z "$IMAP_SYSTEM" ]; then 
     if [ -f /usr/bin/dovecot ]; then
     if [ -f /usr/bin/dovecot ]; then