# # ClamAV RPMS are provided at the CRASHHAT repository # http://crash.fce.vutbr.cz/crash-hat/2/clamav/ # # For ease, the RPM is dumped in .../kickstart/rpms/ # # It can then be installed with rpm -i # # NB Package install creates a new user/group "clamav" so must be # installed BEFORE the switch to ldap # # We're NOT using the clamd daemon, so there is no need to start this # # Scanners are only as good as the definitions they're using, so best # ensure that the definitions are initially up-to-date and that they are # set to update automatically afterwards. # Version 0.80 is the first version to detect the JPG exploit.
set -x echo "%Post: Anti-virus configuration" # Install package if [ "$OS" == "rhel3" ]; then rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-0.83-1.1.el3.rf.i386.rpm rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-db-0.83-1.1.el3.rf.i386.rpm rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamd-0.83-1.1.el3.rf.i386.rpm # Need a small shell script to do what freshclam service does. # i.e. cron freshclam to update virus definitions regularly elif [ "$OS" == "rhel4" ]; then rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-db-0.87-1.2.el4.rf.i386.rpm rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-0.87-1.2.el4.rf.i386.rpm rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamd-0.87-1.2.el4.rf.i386.rpm elif [ "$OS" == "fc4" ]; then rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-0.87-1.i386.rpm rpm -i /mnt/source/kickstart/rpms/clamav/$OS/clamav-server-0.87-1.i386.rpm fi chkconfig --level 345 clamd on chkconfig --level 345 freshclam on set +x
Marked up in XHTML - ©2005 Thoughtful Solutions Ltd.