From 3b680833c805f253589bf32da47ce46bc344cd25 Mon Sep 17 00:00:00 2001 From: mwolson_admin Date: Fri, 17 Oct 2008 00:43:59 -0400 Subject: [PATCH 1/1] hcoop-git-maint: Quick hack to deal with bad user permissions. --- hcoop-git-maint | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hcoop-git-maint b/hcoop-git-maint index 05e3f37..e9f20f6 100755 --- a/hcoop-git-maint +++ b/hcoop-git-maint @@ -7,6 +7,13 @@ find /afs/hcoop.net/user -mindepth 3 -maxdepth 3 -noleaf -exec \ sh -c "test -e {}/.hcoop-git && \ ln -s {}/.hcoop-git/ /var/cache/git/\$(basename {}) 2>/dev/null" \; +# Remove symlinks for users that have wrong permissions +find /afs/hcoop.net/user -mindepth 3 -maxdepth 3 -noleaf -exec \ + sh -c "test ! -e {}/.hcoop-git || \ + ! { fs la {}/.hcoop-git | \ + egrep '^ +system:anyuser .*r' > /dev/null; } && \ + rm -f /var/cache/git/\$(basename {}) 2>/dev/null" \; + # Update cache of front page. cache=/var/local/lib/gitweb/indexcache.html wget -q -O $cache.tmp 'http://git.hcoop.net/?nocache=y' -- 2.20.1