8 LOCK_FILE
=${LOCK_DIR}/lock
10 # Make sure the directory exists
13 # Make sure we don't run twice.
14 if [ -s ${LOCK_FILE} ] && kill -0 $
(cat ${LOCK_FILE}); then
15 echo "Already running (stuck?) with pid $(cat ${LOCK_FILE})" >&2
22 # Re-generate the cache; we must be in same group as cgi user and
23 # $cache_grpshared must be 1.
24 # We get rid even of stderr since it's just junk from broken repos.
25 perl
-le 'require("./gitweb.cgi"); END { my @list = git_get_projects_list(); cached_project_list_info(\@list, 1, 1, 1); }' >/dev
/null
2>&1