Monday, September 19, 2005

script to upgrade clamAV


I wrote this script to automatically upgrade my ClamAV installation. I have to run some hoops, as I run clamAV though amavisd-new.




#!/bin/bash
tar -zxvf clamav-*.tar.gz
rm clamav-*.tar.gz
cd clamav-*
./configure
make
make check
sudo /etc/init.d/amavisd stop
sudo make install
sudo chown -R amavisd:amavisd /usr/local/share/clamav
sudo /usr/local/bin/freshclam -l /var/log/clam-update.log
sudo /etc/init.d/amavisd start
rm -rf clamav-*


Technorati Tags: