Преглед изворни кода

Update permission routines for Z-Push installation

Raphael Schneeberger пре 7 година
родитељ
комит
f9b7a13905
2 измењених фајлова са 8 додато и 4 уклоњено
  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/
     cp -f $hestiacp/zpush/imap.conf.php /etc/z-push/
 
 
     # Set permissions - chmod 777 needs further testing!
     # 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
 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/
     cp -f $hestiacp/zpush/imap.conf.php /etc/z-push/
 
 
     # Set permissions - chmod 777 needs further testing!
     # 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
 fi