Browse Source

Add z-push configuration.

Raphael Schneeberger 7 years ago
parent
commit
c86e707cb2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      install/upgrade/0.9.8-29.sh

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

@@ -105,6 +105,14 @@ if [ ! -z "$MAIL_SYSTEM" ]; then
 
     apt-get -qq update > /dev/null 2>&1
     apt-get -qq -y install z-push-common z-push-backend-imap z-push-backend-combined z-push-autodiscover > /dev/null 2>&1
+
+    # Copy configuration files
+    cp -f $hestiacp/zpush/z-push.conf.php /etc/z-push/
+    cp -f $hestiacp/zpush/imap.conf.php /etc/z-push/
+
+    # Set permissions - chmod 777 needs further testing!
+    set_perms www-data www-data 777 /var/lib/z-push
+    set_perms www-data www-data 777 /var/log/z-push
 fi
 
 # Update default page templates