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
Original issue reported on code.google.com by
heis...@gmail.com
on 16 Mar 2012 at 1:26