#1  
Old 7th May 2006, 23:39
webstergd webstergd is offline
Member
 
Join Date: Dec 2005
Location: Washington, DC
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default possible update

Hey till or falko,

Hey Sorry I haven't done anything in a few months. However, I was recently playing with clamav and noticed it isn't set to allow for auto update. I set this up on my server and it appears to work fine. I haven't tested it fully.

Here is how it is done.
Edit the script that writes clamd.conf /home/admispconfig/ispconfig/tools/clamav/etc/clamd.conf/home/admispconfig/ispconfig/tools/clamav/etc/clamd.conf

Add the lines
DNSDatabaseInfo current.cvd.clamav.net

optional
DatabaseMirror db.XY.clamav.net
where XY is the country code

then have a cron.d job that runs every night with
freshclam -v
Reply With Quote
Sponsored Links
  #2  
Old 8th May 2006, 00:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

ISPConfig uses the freshclam daemon to update the virus signature database, without a cron job. If you run
Code:
ps aux|grep freshclam
you'll see it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th May 2006, 21:40
webstergd webstergd is offline
Member
 
Join Date: Dec 2005
Location: Washington, DC
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default whoops

I was pretty sure you had it to auto update. sorry guys :-)
Reply With Quote
  #4  
Old 18th June 2006, 02:52
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 12 Times in 10 Posts
Default

hey, I just noticed this post and thought I'd throw this in.

My current (non ispc) server which runs clamav on it for mail does one special little trick which I'd like to share with everyone (since I never hear that anyone has done it).

With the 'freshclam' command getting new pattern updates, I noticed that it can't do anything about the program itself. I haven't really checked on the net for anything that automates it but for those of you who like using tar.gz sources and not RPMs like myself, here's an autoupdate script i wrote which has been working for a year or two to auto update clamav itself.

PHP Code:
#!/bin/bash
LOG="/var/log/clamav-prog-update.log"

STATUS="`/usr/local/bin/freshclam --log=/var/log/clam-update.log 2>&1 | grep \"WARNING: Local version\"`"

NEW="`echo $STATUS |awk {'print $7'}`"
OLD="`echo $STATUS | awk {'print $4'}`";

# If it's OLD, updated it.
if [ "$NEW" ]; then
    cd 
/usr/src/source

    wget  http
://easynews.dl.sourceforge.net/sourceforge/clamav/clamav-$NEW.tar.gz >$LOG 2>&1
    
cd ..

    
tar xvfz source/clamav-$NEW.tar.gz >$LOG 2>&1
    cd clamav
-$NEW

    
../compile-clamav >$LOG 2>&1

    RESULT
="$?"

    
if [ "$RESULT" ]; then
        
echo "OLD=$OLD NEW=$NEW"
        
rm -fr /usr/src/clamav-$OLD/ >$LOG 2>&1
        service amavisd restart 
>$LOG 2>&1
    fi

fi 
Reply With Quote
  #5  
Old 18th June 2006, 19:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
 
Default

Nice script
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig Update and SSL disasm Installation/Configuration 3 12th October 2008 14:55
Update ok! sa-update error ? lyndros Installation/Configuration 2 19th March 2008 20:05
How to build packages that can be installed with the ISPConfig update function. till Tips/Tricks/Mods 3 18th February 2008 13:10
Update to 2.2.0 question brianetilley Installation/Configuration 10 4th March 2006 17:02
Update from 2.0.7 to 2.0.8 brody Installation/Configuration 7 31st August 2005 16:37


All times are GMT +2. The time now is 08:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.