So how are you getting this cf to be included with local.cf without combining?


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Smith
Sent: Thursday, December 04, 2003 7:50 PM
To: Peter Kiem; [EMAIL PROTECTED]
Subject: RE: [SAtalk] bigevil.cf + rsync?

I'm actually a windows guy who has been converting to linux for some time so my 
scripting is rusty and primitive (cause that's what I know) but it works.
 
This came from my /etc/cron.hourly/bigevil.sh file.
 
#!/bin/sh
# This file updates the big evil policy file for spam assassin DATE=`date 
+"%Y%m%d-%H%M"` if [ -f bigevil.cf ] then
        rm -f bigevil.cf
fi
if [ -f /tmp/bigevil.cf ]
then
        rm -f bigevil.cf
fi
wget -N http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf 
<http://www.merchantsoverseas.com/wwwroot/gorilla/bigevil.cf>  \
        -O /tmp/bigevil.cf \
        2>&1 | grep -q 'saved'
if [ $? = 0 ] ; then
        cmp /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf >/dev/null 2>&1
        if [ $? -ne 0 ]
        then
                mv /etc/mail/spamassassin/bigevil.cf 
/etc/mail/spamassassin/bigevil.cf.$DATE
                mv /tmp/bigevil.cf /etc/mail/spamassassin/bigevil.cf
                echo "BIG EVIL has changed on `hostname`.  The new evil is `head -n 1 
/etc/mail/spamassassin/bigevil.cf`" \
                        | mutt [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  \
                        -s "The big evil policy has been updated" -a 
/etc/mail/spamassassin/bigevil.cf
                /etc/init.d/spamd restart > /dev/null 2>&1 /dev/null
        #else
                #files are the same
        fi
fi
 
I added some logic so I could keep a copy of the origial bigevil.cf scipt in case I 
needed to roll back or something.
 
 

        -----Original Message----- 
        From: [EMAIL PROTECTED] on behalf of Peter Kiem 
        Sent: Thu 12/4/2003 4:14 PM 
        To: [EMAIL PROTECTED] 
        Cc: 
        Subject: [SAtalk] bigevil.cf + rsync?
        
        

        Hi,
        
        Any chance we can get rsync access to bigevil.cf so we can autoupdate
        whenever you change your rules?
        
        --
        Regards,
        +-----------------------------+---------------------------------+
        | Peter Kiem            .^.   | E-Mail    : <[EMAIL PROTECTED]> |
        | Zordah IT             /V\   | Mobile    : +61 0414 724 766    |
        |   IT Consultancy &  /(   )\ | WWW       : www.zordah.net      |
        |   Internet Services  ^^-^^  | ICQ       : "Zordah" 866661     |
        +-----------------------------+---------------------------------+
               My current spamtrap address is [EMAIL PROTECTED]
        
        
        -------------------------------------------------------
        This SF.net email is sponsored by: IBM Linux Tutorials.
        Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
        Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
        Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
        _______________________________________________
        Spamassassin-talk mailing list
        [EMAIL PROTECTED]
        https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
        

NHYÞéX'uS+l({^Ø,T^lz|$YlJ('èLZxîj[
yzb kay^[h+vh
Xz0i&bt
Ætrjj~zqzj

N¬HYÞéX¬²š'²ŠÞu¼ˆÂâžìSºÚ+‰©lç(™æ§{^®Ø,ƒT^ŠãºËl…ªéz|¨º»$ŠYlJ('º—èL°ZÞx¸§»îâj[yªçz÷«ÊØbžë¢kay¶¬†È^–[h³+vh§
Xœ’z0†ÛiÿöÊ&ý§bw]»ñ©e¡Èß~õ¢—%‰É¥©š²Æ²)íjY&j)bž  
b²Ôjf¬±«,Š{Z–Ib²Û,¢êÜyú+éÞm¦Ïÿ–+-²Ê.­Ç¢¸ë–+-³ùb²Ø~ìš²Æ²)íjY

Reply via email to