From 28ed970fbc8cae303c6aac4008568cb9e5e8e15b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Tue, 5 Aug 2008 02:40:22 +1200 Subject: [PATCH] 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. --- mksnapshot-cron.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3