[Xfce4-commits] <xfce-git-migration:master> set ACL as well

Brian J. Tarricone brian at tarricone.org
Thu Aug 13 03:22:01 CEST 2009


Updating branch refs/heads/master
         to b6479669774e8d5c1416913e53f4af8c50e83722 (commit)
       from a5d0e82aef3927e8d436a0f6dd6301c2cdbdfe63 (commit)

commit b6479669774e8d5c1416913e53f4af8c50e83722
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Thu Aug 13 00:32:27 2009 +0000

    set ACL as well

 set-perms.sh |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/set-perms.sh b/set-perms.sh
index cb27624..5be642b 100755
--- a/set-perms.sh
+++ b/set-perms.sh
@@ -4,10 +4,16 @@ GIT_REPOS_ROOT=/var/git
 
 pushd $GIT_REPOS_ROOT &>/dev/null || exit 1
 
-chown -R root:git-push .
-chmod -R a+r .
-chmod -R ug+w .
-find -type d | xargs chmod a+x
-find -type d | xargs chmod g+s
+for d in *; do
+    [ "$d" = "lost+found" ] && continue
+    [ "$d" = "svn.old" ] && continue
+
+    chown -R root:git-push $d
+    chmod -R a+r $d
+    chmod -R ug+w $d
+    find $d -type d | xargs chmod a+x
+    find $d -type d | xargs chmod g+s
+    setfacl -R -m d:g:git-push:rwx $d
+done
 
 popd &>/dev/null



More information about the Xfce4-commits mailing list