# Update cache of front page.
cache=/var/local/lib/gitweb/indexcache.html
-wget -q -O $cache.tmp 'http://git.hcoop.net/test?nocache=y'
-chmod a+r $cache.tmp
-mv $cache.tmp $cache
+wget -q -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