Store the cache hash file in LOCALSTATEDIR/web/ so it can be used from within apache...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Apr 2011 16:36:14 +0000 (16:36 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 19 Apr 2011 16:36:14 +0000 (16:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20215 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/extras/cache-generator.sh

index 35f11f2..a9dd834 100644 (file)
@@ -9,11 +9,11 @@ BINDIR/autogen.sh $@ |tee /tmp/.eg-cache-generator.$PID
   for i in `grep -- '->' /tmp/.eg-cache-generator.$PID| awk '{print $2}'`; do
     ls $i >/dev/null 2>/dev/null && md5sum $i
   done
-) | md5sum | cut -f1 -d' ' | colrm 1 26 > SYSCONFDIR/eg_cache_hash
+) | md5sum | cut -f1 -d' ' | colrm 1 26 > LOCALSTATEDIR/web/eg_cache_hash
 
 echo
 echo -n "Current Evergreen cache key: "
-cat SYSCONFDIR/eg_cache_hash
+cat LOCALSTATEDIR/web/eg_cache_hash
 
 rm /tmp/.eg-cache-generator.$PID