From 0547d712f6901c6c3e35c339a47388787e1e1198 Mon Sep 17 00:00:00 2001 From: Clinton Ebadi Date: Sat, 15 Dec 2018 12:26:20 -0500 Subject: [PATCH] hcoop-git-maint: don't generate cache page has been unused for several years now --- hcoop-git-maint | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/hcoop-git-maint b/hcoop-git-maint index d755f79..3548a58 100755 --- a/hcoop-git-maint +++ b/hcoop-git-maint @@ -21,16 +21,17 @@ for user in $(ls -1 /var/cache/git); do -regex '.*/\(refs\|objects\|hooks\)\(/.*\|$\)' -prune -o -exec \ sh -c "! { fs la {} | \ egrep '^ +system:anyuser .*r' > /dev/null; } && \ - rm -f /var/cache/git/$user 2>/dev/null" \; #\ + rm -f /var/cache/git/$user 2>/dev/null" \; \ > /dev/null 2>&1 done # Update cache of front page. -cache=/var/local/lib/gitweb/indexcache.html -wget -q --timeout 30 -O $cache.tmp 'http://git.hcoop.net/?nocache=y' -if test -s $cache.tmp; then - chmod a+r $cache.tmp - mv $cache.tmp $cache -else - rm -f $cache.tmp -fi +# unused for a long while... +# cache=/var/local/lib/gitweb/indexcache.html +# wget -q --timeout 30 -O $cache.tmp 'http://git.hcoop.net/?nocache=y' +# if test -s $cache.tmp; then +# chmod a+r $cache.tmp +# mv $cache.tmp $cache +# else +# rm -f $cache.tmp +# fi -- 2.20.1