Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/sh
2
 
3
### A simple update script for the clamav virus database.
4
### This could as well be replaced by a SysV script.
5
 
6
### fix log file if needed
7
LOG_FILE="/var/log/clamav/freshclam.log"
8
if [ ! -f "$LOG_FILE" ]; then
9
    touch "$LOG_FILE"
10
    chmod 644 "$LOG_FILE"
11
    chown clam.clam "$LOG_FILE"
12
fi
13
 
14
/usr/bin/freshclam \
15
    --quiet \
16
    --datadir="/var/spool/amavisd" \
17
    --log="$LOG_FILE"