File 10796.patch of Package squid-beta
---------------------
PatchSet 10796
Date: 2007/05/13 21:19:25
Author: hno
Branch: HEAD
Tag: (none)
Log:
Update cfgman directory when making snapshots
Members:
mksnapshot-cron.sh:1.18->1.19
Index: squid3/mksnapshot-cron.sh
===================================================================
RCS file: /cvsroot/squid/squid3/mksnapshot-cron.sh,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- squid3/mksnapshot-cron.sh 13 May 2007 11:14:24 -0000 1.18
+++ squid3/mksnapshot-cron.sh 13 May 2007 21:19:25 -0000 1.19
@@ -48,6 +48,14 @@
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
rm -f $dst/*-$f $dst/*-$f.md5
done
+
+ # Special cases
+ case $file in
+ *-cfgman.tar.gz)
+ mkdir -p $dst/cfgman
+ tar -C $dst/cfgman -zxf $dst/$file
+ ;;
+ esac
done
# update web page