Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
198 - 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
16
chown -R $USER.$USER /var/clamav
17
 
18
/usr/bin/freshclam \
19
    --quiet \
20
    --datadir="/var/clamav" \
21
    --log="$LOG_FILE" \
22
    --daemon-notify="/etc/clamd.conf" 2>/dev/null
23
 
24
 
25
 
26
# Current 3rd party channel updater
27
#if [ -x /usr/bin/clamav_updater.sh ]; then
28
#  /usr/bin/clamav_updater.sh >/dev/null 2>&1
29
#fi