At 06:02 PM 12/9/2006, Bill Landry wrote:
Noel, that doesn't really work for me, as I download all MSRBL &
SaneSecurity databases at the same time (that's for sig databases), and
if a single sig database file fails, that doesn't mean all failed. I
still want to copy the good database sig files into the clamav directory
so they can be used.
Yes, exactly. This will work fine for you.
(cd to some tmp dir)
(download all your custom sigs)
(gunzip the gzipped files)
For name in *db
do
clamscan --quiet -d $name && \
cp -p $name /var/db/clamav
done
All good signatures will be copied, corrupt sig databases will be
ignored. You can get fancier with checking exit status, using mv to
insure atomic updates, or triggering a clamd reload, but the above
simple script will do the job fine.
--
Noel Jones
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html