#! /bin/sh
# this script update kav bases
#
#######
# CONFIG
#######
LDIR="/home/public/distrib/win/avp_up_zip"
RDIR="ftp://downloads4.kaspersky-labs.com/updates_zip"
DEP=1
#
cd $LDIR
wget -nr -nH --cut-dirs=$DEP -N --passive-ftp  $RDIR/*.zip -o /var/account/update/avp/`date +update_%Y-%m-%d`
# set valid cwner
chown -R root.public /home/public/distrib/win/avp_up_zip
find $LDIR -type f -exec chmod 644 {} \;
# last line

