This script (to be triggered by cron) maintains a local mirrored copy of the McAfee update repo. (reshare by HTTP or FTP, then point clients to it)

#!/bin/sh
TMPFILE=`mktemp -t mcafeemirror.XXXXXXXXXX` || exit 1
LOCKDIR="/var/lock/mcafeemirror"

if mkdir $LOCKDIR 2> /dev/null; then
  trap 'rm -rf $LOCKDIR' 0
else
  echo ERROR: McAfee Mirror script is already running >&2
  exit 1
fi

if [ "$1" = "-v" ]; then
  wget -nH -np -m ftp://ftp.nai.com/CommonUpdater/
else
  wget -nv -nH -np -m ftp://ftp.nai.com/CommonUpdater/ 2> $TMPFILE
fi

if [ $? -ne 0 ]; then
  cat $TMPFILE
  rm -f $TMPFILE
  exit 1
else
  rm -f $TMPFILE
  exit 0
fi
computer/mcafee_dat_mirror.txt · Last modified: 2015/05/11 23:35 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS