chiark / gitweb /
remove stale caches based on MD5 of rrdtool args
[rrd-graphs.git] / cgi-invoke
index cd46ce970978a8569630ae3f1d89ad66d513f77b..8d90633b8c2abf7e4288272ae591ada3a153e3b5 100755 (executable)
@@ -7,8 +7,5 @@ exec with-lock-ex -w data/graph-lock sh -ec '
                rm -f cache
                ln -s $GRAPH_CGI_CACHE cache
        fi
-        if test cgi -nt cache/.; then
-                rm -f cache/*
-        fi
-       ./cgi "$@"
+       exec ./cgi "$@"
 ' x "$@"