Subversion Repositories configs

Rev

Rev 168 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
168 - 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
USER=`awk '/DatabaseOwner/ {print $2}' /etc/freshclam.conf`
9
if [ ! -f "$LOG_FILE" ]; then
10
    touch "$LOG_FILE"
11
    chmod 644 "$LOG_FILE"
12
    chown $USER.$USER "$LOG_FILE"
13
fi
14
 
15
# User check event
171 - 16
chown -R $USER.$USER /var/spool/amavisd
168 - 17
 
18
/usr/bin/freshclam \
19
    --quiet \
171 - 20
    --datadir="/var/spool/amavisd/" \
168 - 21
    --log="$LOG_FILE" \
22
    --verbose \
23
    --daemon-notify="/etc/clamd.conf" 2>/dev/null
24
 
25
# Current 3rd party channel updater
26
#if [ -x /usr/bin/clamav_updater.sh ]; then
27
#  /usr/bin/clamav_updater.sh >/dev/null 2>&1
28
#fi