Explorar o código

Update permission routines for Z-Push installation

Raphael Schneeberger %!s(int64=7) %!d(string=hai) anos
pai
achega
f9b7a13905
Modificáronse 2 ficheiros con 8 adicións e 4 borrados
  1. 4 2
      install/hst-install-debian.sh
  2. 4 2
      install/hst-install-ubuntu.sh

+ 4 - 2
install/hst-install-debian.sh

@@ -1500,8 +1500,10 @@ if [ "$exim" = 'yes' ]; then
     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
+    chown -R www-data:www-data /var/lib/z-push
+    chown -R www-data:www-data /var/log/z-push
+    chmod 777 /var/lib/z-push
+    chmod 777 /var/log/z-push
 fi
 
 

+ 4 - 2
install/hst-install-ubuntu.sh

@@ -1454,8 +1454,10 @@ if [ "$exim" = 'yes' ]; then
     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
+    chown -R www-data:www-data /var/lib/z-push
+    chown -R www-data:www-data /var/log/z-push
+    chmod 777 /var/lib/z-push
+    chmod 777 /var/log/z-push
 fi