Remove a DAT file that didn't completely download because it is not useful
and make refetching easier
This commit is contained in:
parent
e8599f3df2
commit
690474a309
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120331
@ -16,18 +16,18 @@ AVVER=`grep DATVersion update.ini | head -1 | cut -f2 -d= | sed -e 's/^\(4[0-9]*
|
||||
|
||||
# Check to make sure the requested version is "newer" then the current
|
||||
if [ "$cur_AVVER" -lt "$AVVER" ]; then
|
||||
if [ ! -f dat-$AVVER.tar ]; then
|
||||
for i in *.tar ; do
|
||||
mv $i $i.old
|
||||
for i in *.tar ; do
|
||||
mv $i $i.old
|
||||
done
|
||||
if ftp http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar >/dev/null ; then
|
||||
for i in *.dat ; do
|
||||
cp -p $i $i.bak
|
||||
done
|
||||
if ftp http://download.nai.com/products/datfiles/4.x/nai/dat-$AVVER.tar >/dev/null ; then
|
||||
for i in *.dat ; do
|
||||
cp -p $i $i.bak
|
||||
done
|
||||
if tar xf dat-$AVVER.tar ; then
|
||||
rm -f *.old
|
||||
echo `date` Successfully updated AntiVirus DAT files to $AVVER
|
||||
fi
|
||||
if tar xf dat-$AVVER.tar ; then
|
||||
rm -f *.old
|
||||
echo `date` Successfully updated AntiVirus DAT files to $AVVER
|
||||
fi
|
||||
else
|
||||
rm -f dat-$AVVER.tar
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user