Changeset 71


Ignore:
Timestamp:
03/22/09 12:09:31 (5 years ago)
Author:
jake
Message:

Added replacement for UpdateSaneSecurity? script that downloads the clamav defs with the correct rsync paths. Updated installer script to work with this new clamav script.

Files:
2 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • bin/qtp-extraclam

    r3 r71  
    11#!/bin/sh 
    22 
    3 # Written by Jake Vickers (jake@v2gnu.com) on 10/10/07 
    4 #       Installs UpdateSaneSecurity into your /etc/cron.hourly dir to add additional defs 
     3# Written by Jake Vickers (jake@qmailtoaster.com) on 03/22/09 
     4#       Installs an hourly cron script that will download additional virus defs 
    55#       for ClamAV to help fight spam. The script waits a random amount of time, then  
    6 #       downloads the newest defs if there are any - it also drops your firewall to 
    7 #       accomplish this, saving your current rules to /tmp/temp_firewall. After it's done 
    8 #       downloading the new defs, it restores your firewall and restarts the clamav 
     6#       downloads the newest defs if there are any. You will need to open port 873 (rsync) 
     7#       to accomplish this. You may open outgoing only if you track RELATED in your firewall. 
     8#       After it's done, it restores your firewall and restarts the clamav 
    99#       daemon using the new qmail-clam control script also provided in QTP. 
    1010 
    11 HOURLYCRON=/etc/cron.hourly/UpdateSaneSecurity.sh 
     11HOURLYCRON=/etc/cron.hourly/unofficial-clamav-sigs.sh 
    1212qtp=/opt/qmailtoaster-plus 
    1313cron_loc=/etc/cron.hourly 
     
    2323echo "written by Sane Security. The script will run hourly, then wait a" 
    2424echo "random number of seconds (min 30, max 600 to keep from hammering their servers)" 
    25 echo "before lowering your firewall to download the latest defs. Once it is done, it" 
    26 echo "will restore your firewall rules and restart the clamav daemon using the qmail-clam" 
    27 echo "script also provided in QTP." 
     25echo "before downloading the latest defs. Once it is done, it will restart the clamav" 
     26echo "daemon using the qmail-clam script also provided in QTP." 
    2827echo "" 
    2928echo "Hit enter to continue" 
     
    3332echo "" 
    3433 
    35 echo "Installing UpdateSaneSecurity as an hourly cron job." 
    36 cp $qtp/etc/cron.hourly/UpdateSaneSecurity.sh $cron_loc/ 
     34echo "Installing unofficial-clamav-sigs.sh as an hourly cron job." 
     35cp $qtp/etc/cron.hourly/unofficial-clamav-sigs.sh $cron_loc/ 
    3736chmod +x $HOURLYCRON 
    38  
    39 echo "" 
     37echo "Installing unofficial-clamav-sigs.conf in /etc/ (configuration file)" 
     38cp $qtp/etc/unofficial-clamav-sigs.conf /etc/ 
     39sleep 2 
     40echo 
     41echo "The cron will run on the next cron.hourly trigger." 
     42echo  
    4043exit 0 
Note: See TracChangeset for help on using the changeset viewer.