Просмотр исходного кода

Add Z-Push during upgrade existing hestia systems.

Raphael Schneeberger 6 лет назад
Родитель
Сommit
daa36e3e5e

+ 1 - 1
install/hst-install-debian.sh

@@ -1469,7 +1469,7 @@ fi
 
 if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ]; then
     echo "(*) Configuring Z-Push ActiveSync & AutoDiscover service..."
-    cp -rf $HESTIA_INSTALL_DIR/zpush/zpush_params /etc/nginx/conf.d/
+    cp -f $HESTIA_INSTALL_DIR/zpush/zpush_params /etc/nginx/conf.d/
 fi
 
 

+ 1 - 3
install/hst-install-ubuntu.sh

@@ -1441,9 +1441,7 @@ fi
 
 if [ "$dovecot" = 'yes' ] && [ "$exim" = 'yes' ]; then
     echo "(*) Configuring Z-Push ActiveSync & AutoDiscover service..."
-    cp -rf $HESTIA_INSTALL_DIR/zpush/autodiscover.conf.php /etc/z-push/
-    cp -rf $HESTIA_INSTALL_DIR/zpush/imap.conf.php /etc/z-push/
-    cp -rf $HESTIA_INSTALL_DIR/zpush/z-push.conf.php /etc/z-push/
+    cp -f $HESTIA_INSTALL_DIR/zpush/zpush_params /etc/nginx/conf.d/
 fi
 
 

+ 7 - 0
install/upgrade/versions/latest.sh

@@ -6,3 +6,10 @@
 #######                      Place additional commands below.                   #######
 #######################################################################################
 
+
+# Add Z-Push ActiveSync/AutoDiscover to mail stack
+if [ -z "$MAIL_SYSTEM" ] && [ -z "$IMAP_SYSTEM" ]; then
+    echo "(*) Configuring Z-Push ActiveSync & AutoDiscover service..."
+    apt-get -qq update && apt-get install hestia-zpush
+    cp -f $HESTIA/install/deb/zpush/zpush_params /etc/nginx/conf.d/
+fi