chiark
/
gitweb
/
~ijackson
/
rrd-graphs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove stale caches based on MD5 of rrdtool args
[rrd-graphs.git]
/
cgi-invoke
1
#!/bin/sh
2
set -e
3
exec with-lock-ex -w data/graph-lock sh -ec '
4
if ! test -d cache; then
5
quicksand-setup ||:
6
if ! test -d $GRAPH_CGI_CACHE; then mkdir $GRAPH_CGI_CACHE; fi
7
rm -f cache
8
ln -s $GRAPH_CGI_CACHE cache
9
fi
10
exec ./cgi "$@"
11
' x "$@"