clamav/freshclam.cron
2012-01-19 19:33:03 -06:00

18 lines
424 B
Bash

#!/bin/sh
### 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="%{_localstatedir}/log/clamav/freshclam.log"
if [ ! -f "$LOG_FILE" ]; then
touch "$LOG_FILE"
chmod 644 "$LOG_FILE"
chown clam.clam "$LOG_FILE"
fi
%{_bindir}/freshclam \
--quiet \
--datadir="%{_localstatedir}/lib/clamav" \
--log="$LOG_FILE"