]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix snapshot MD5 symlinks
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 4 Aug 2008 14:40:22 +0000 (02:40 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 4 Aug 2008 14:40:22 +0000 (02:40 +1200)
For some unknown time the MD5 symlinks used to generate web page links
have been pointing at the source file the MD5 was calculated from
not the MD5 itself.

mksnapshot-cron.sh

index dab5d63647c3190603e86dc75150d825b776984c..6bc036b9bce5fcc6376fbf3dad9c6b50c3f0161f 100755 (executable)
@@ -52,7 +52,7 @@ make_snapshot()
     rm -f $dst/squid-$ver.snapshot$type
     ln -s $file $dst/squid-$ver.snapshot$type
     rm -f $dst/squid-$ver.snapshot$type.md5
-    ln -s $file $dst/squid-$ver.snapshot$type.md5
+    ln -s $file.md5 $dst/squid-$ver.snapshot$type.md5
 
     # cleanup old snapshots
     ls $dst/*-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$type | sed -e 's/.*-\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'$type'\)/\1/' | sort -r | tail +$save | while read f; do