From 4c61afd504bfc20ab8255d13913abbd3c8492de0 Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Mon, 16 Jul 2012 09:16:14 -0500 Subject: [PATCH 1/2] Set post-receive hook permissions to gitlab user on install. Fixes #933 --- doc/installation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/installation.md b/doc/installation.md index 3dfedfe10ad..a408114af7a 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -119,6 +119,7 @@ Permissions: sudo chmod -R g+rwX /home/git/repositories/ sudo chown -R git:git /home/git/repositories/ + find /home/git/repositories/ -maxdepth 3 -mindepth 3 -name "post-receive" | xargs chown gitlab:gitlab #### CHECK: Logout & login again to apply git group to your user -- GitLab From cc34416f316e49fac0824e0e677fcf462d60da29 Mon Sep 17 00:00:00 2001 From: Abe Voelker Date: Mon, 16 Jul 2012 11:17:38 -0500 Subject: [PATCH 2/2] Add null-terminator options to find and xargs --- doc/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/installation.md b/doc/installation.md index a408114af7a..8c0993b20ba 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -119,7 +119,7 @@ Permissions: sudo chmod -R g+rwX /home/git/repositories/ sudo chown -R git:git /home/git/repositories/ - find /home/git/repositories/ -maxdepth 3 -mindepth 3 -name "post-receive" | xargs chown gitlab:gitlab + find /home/git/repositories/ -maxdepth 3 -mindepth 3 -name "post-receive" -print0 | xargs -0 chown gitlab:gitlab #### CHECK: Logout & login again to apply git group to your user -- GitLab