From: Amos Jeffries Date: Mon, 4 Aug 2008 14:40:22 +0000 (+1200) Subject: Fix snapshot MD5 symlinks X-Git-Tag: SQUID_3_1_0_1~49^2~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28ed970fbc8cae303c6aac4008568cb9e5e8e15b;p=thirdparty%2Fsquid.git Fix snapshot MD5 symlinks 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. --- diff --git a/mksnapshot-cron.sh b/mksnapshot-cron.sh index dab5d63647..6bc036b9bc 100755 --- a/mksnapshot-cron.sh +++ b/mksnapshot-cron.sh @@ -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