#!/bin/bash
# get-anti-virus-updates script.sh
# version 0.2

# Note:
# - save this file somewhere (i.e. /root)
# - make it executable (chmod +x get-anti-virus-updates script.sh)
# - add a command to /etc/crontab to run it daily (0 1 * * * root /root/get-anti-virus-updates)
# - (there must be a better location than /root but we don't know it yet)
# - this script requires unzip (on Debian you can get this using: apt-get install unzip)

# remove the previous updates
# (unzip -o complains with something like 'caution: filename not the same'):
rm /usr/windows/updates/anti-virus/*

# download the updates to the current directory
# (don't see how to specify a different location to download to with wget):
wget ftp://ftp.f-prot.com/pub/fp-def.zip
wget ftp://ftp.f-prot.com/pub/macrdef2.zip

# unzip the updates to the location where clients will download from:
unzip fp-def.zip -d /usr/windows/updates/anti-virus/
unzip macrdef2.zip -d  /usr/windows/updates/anti-virus/

