[Pkg-owncloud-commits] [owncloud-doc] 03/10: correct permissions script

David Prévot taffit at moszumanska.debian.org
Thu Jul 2 17:31:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 603e9c0e3c9403db1007f9e714812521bc6704cf
Author: Carla Schroder <carla at owncloud.com>
Date:   Wed Jun 24 11:48:34 2015 -0700

    correct permissions script
---
 admin_manual/installation/installation_wizard.rst | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/admin_manual/installation/installation_wizard.rst b/admin_manual/installation/installation_wizard.rst
index 876f519..7ba31c2 100644
--- a/admin_manual/installation/installation_wizard.rst
+++ b/admin_manual/installation/installation_wizard.rst
@@ -109,26 +109,25 @@ should see a single line in your browser page with the HTTP user name.
    ownership as above could result in some issues if the NFS mount is 
    lost.
 
-The easy way to set the correct permissions is to copy and run this 
-script. Replace the ``ocpath`` variable with the path to your ownCloud 
-directory, and replace the ``htuser`` variable with your own HTTP user::
+The easy way to set the correct permissions is to copy and run this script. Replace the ``ocpath`` variable with the path to your ownCloud directory, and replace the ``htuser`` and ``htgroup`` variables with your HTTP user and group::
 
  #!/bin/bash
  ocpath='/var/www/owncloud'
  htuser='www-data'
+ htgroup='www-data'
 
  find ${ocpath}/ -type f -print0 | xargs -0 chmod 0640
  find ${ocpath}/ -type d -print0 | xargs -0 chmod 0750
 
  chown -R root:${htuser} ${ocpath}/
- chown -R ${htuser}:${htuser} ${ocpath}/apps/
- chown -R ${htuser}:${htuser} ${ocpath}/config/
- chown -R ${htuser}:${htuser} ${ocpath}/data/
- chown -R ${htuser}:${htuser} ${ocpath}/themes/
+ chown -R ${htuser}:${htgroup} ${ocpath}/apps/
+ chown -R ${htuser}:${htgroup} ${ocpath}/config/
+ chown -R ${htuser}:${htgroup} ${ocpath}/data/
+ chown -R ${htuser}:${htgroup} ${ocpath}/themes/
 
  chown root:${htuser} ${ocpath}/.htaccess
  chown root:${htuser} ${ocpath}/data/.htaccess
- 
+
  chmod 0644 ${ocpath}/.htaccess
  chmod 0644 ${ocpath}/data/.htaccess
  

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list