ijudezue / emda

Automatically exported from code.google.com/p/emda
0 stars 0 forks source link

Change freshclam.sh to just freshclam #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
add the below code to freshclam.sh, and then rename to just freshclam under 
cron.daily

### A simple update script for the clamav virus database.
### This could as well be replaced by a SysV script.

### fix log file if needed
LOG_FILE="/var/log/clamav/freshclam.log"
if [ ! -f "$LOG_FILE" ]; then
    touch "$LOG_FILE"
    chmod 644 "$LOG_FILE"
    chown clam.clam "$LOG_FILE"
fi

/usr/bin/freshclam \
    --quiet \
    --datadir="/var/lib/clamav" \
    --log="$LOG_FILE"

Original issue reported on code.google.com by heis...@gmail.com on 16 Mar 2012 at 1:26

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r91.

Original comment by heis...@gmail.com on 16 Mar 2012 at 6:59