]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Update cfgman directory when making snapshots
authorhno <>
Mon, 14 May 2007 03:19:25 +0000 (03:19 +0000)
committerhno <>
Mon, 14 May 2007 03:19:25 +0000 (03:19 +0000)
mksnapshot-cron.sh

index f45f672fbb1faf4bba3db0df914272864a2dff60..c81d1c3c7aa729f58e09e70ea0d4f308ed766397 100755 (executable)
@@ -48,6 +48,14 @@ make_snapshot()
     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