Untuk update yang saya coba kali ini dari clamav versi 99.0 ke calamav 99.2. Jangan lupa anda pindah dulue ke direktori /opt/zimbra dan jalankan scriptnya.
#!/bin/bash # # # Otherwise, if you really want to run it, uncomment the exit # statement. # # [http://www.zimbra.com/forums/members/artimus.html artimus]- 20071119 updates by others 20071206 # ################################################################## #exit NOW=`date +%Y%m%d%H%M%S` BUILDDIR=${NOW}_clamav_build ClamVer="clamav-0.99.2" ClamURL="https://www.clamav.net/downloads/production/clamav-0.99.2.tar.gz" echo "Installing dependencies if necessary" yum -y install gcc glibc zlib-devel gmp-devel bzip2-devel # on Debian/Ubuntu use: apt-get build-dep clamav # apt-get build-dep clamav echo "Preparing Source" mkdir ${BUILDDIR} && cd ${BUILDDIR} wget ${ClamURL} tar -zxvf ${ClamVer}.tar.gz cd ${ClamVer} echo "==== Building and Installing ClamAV ====" ./configure --prefix=/opt/zimbra/${ClamVer} --with-user=zimbra --with-group=zimbra make && make check && make install chown -R zimbra:zimbra /opt/zimbra/${ClamVer} cd /opt/zimbra/${ClamVer}/etc mv clamd.conf clamd.conf.orig mv freshclam.conf freshclam.conf.orig cp /opt/zimbra/conf/clamd.conf . cp /opt/zimbra/conf/freshclam.conf . chown zimbra:zimbra *.conf sudo -u zimbra /opt/zimbra/bin/zmcontrol stop cd /opt/zimbra unlink clamav ln -s ${ClamVer} clamav echo "==== Update AV DB =========" sudo -u zimbra /opt/zimbra/clamav/bin/freshclam echo "===== Starting Zimbra =======" echo " If it doesn't work, try a reboot" sudo -u zimbra /opt/zimbra/bin/zmcontrol start
Post a Comment
Silahkan anda tulis komentar di bawah ini !