You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/05/08 16:44:45 UTC

[6/7] git commit: [#7316] ensure proper perms for /srv dirs so that apache2/git-http-backend can read

[#7316] ensure proper perms for /srv dirs so that apache2/git-http-backend can read


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/c8201397
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/c8201397
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/c8201397

Branch: refs/heads/master
Commit: c8201397a3391e8ba5c8573c22feca3992cb84ff
Parents: ce6e55b
Author: Dave Brondsema <da...@brondsema.net>
Authored: Thu Apr 17 16:49:31 2014 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Thu May 8 10:44:09 2014 -0400

----------------------------------------------------------------------
 Allura/docs/scm_host.rst                      | 4 ++--
 INSTALL.markdown                              | 1 +
 vagrant/manifests/ubuntu-1204-server-amd64.pp | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/c8201397/Allura/docs/scm_host.rst
----------------------------------------------------------------------
diff --git a/Allura/docs/scm_host.rst b/Allura/docs/scm_host.rst
index 3a80490..89c8108 100644
--- a/Allura/docs/scm_host.rst
+++ b/Allura/docs/scm_host.rst
@@ -41,8 +41,8 @@ and subsequent chapters.
 
 .. code-block:: bash
 
-    sudo mkdir /srv/git
-    sudo chown allura:allura /srv/git  # or other user, as needed (e.g. "vagrant")
+    sudo chmod 775 /srv/*  # make sure apache can read the repo dirs
+    sudo apt-get install apache2
     sudo a2enmod proxy rewrite
     sudo vi /etc/apache2/sites-available/default
 

http://git-wip-us.apache.org/repos/asf/allura/blob/c8201397/INSTALL.markdown
----------------------------------------------------------------------
diff --git a/INSTALL.markdown b/INSTALL.markdown
index e890203..b5e984c 100644
--- a/INSTALL.markdown
+++ b/INSTALL.markdown
@@ -119,6 +119,7 @@ The default configuration stores repos in `/srv`, so we need to create those dir
 
     sudo mkdir /srv/{git,svn,hg}
     sudo chown $USER /srv/{git,svn,hg}
+    sudo chmod 775 /srv/{git,svn,hg}
 
 If you don't have `sudo` permission or just want to store them somewhere else, change the `/srv` paths in `development.ini`
 

http://git-wip-us.apache.org/repos/asf/allura/blob/c8201397/vagrant/manifests/ubuntu-1204-server-amd64.pp
----------------------------------------------------------------------
diff --git a/vagrant/manifests/ubuntu-1204-server-amd64.pp b/vagrant/manifests/ubuntu-1204-server-amd64.pp
index 11fd2d0..ea6abfa 100644
--- a/vagrant/manifests/ubuntu-1204-server-amd64.pp
+++ b/vagrant/manifests/ubuntu-1204-server-amd64.pp
@@ -119,5 +119,5 @@ file { [ "/srv/git", "/srv/hg", "/srv/svn" ]:
   ensure => "directory",
   owner => "vagrant",
   group => "vagrant",
-  mode   => 770,
+  mode   => 775,
 }