]> git.pld-linux.org Git - packages/clamav.git/blob - clamav-cron-updatedb
- include *.pc file
[packages/clamav.git] / clamav-cron-updatedb
1 #!/bin/sh
2
3 [ -f /etc/sysconfig/clamd ] && . /etc/sysconfig/clamd
4
5 [ -z "$UPDATE_HOUR" ] && UPDATE_HOUR=2
6 [ -z "$UPDATE_QUIET" ] && UPDATE_QUIET="yes"
7
8 DIV="$(echo "$(LC_ALL=C date "+%H % ${UPDATE_HOUR}")" | bc)"
9
10 if [ "$UPDATE_QUIET" = "yes" ]; then
11     freshclamopt="--quiet"
12 fi
13     
14 if [ "$DIV" = "0" ]; then
15         umask 022
16         log=$(/usr/bin/freshclam $freshclamopt --daemon-notify 2>&1)
17         if [ "$UPDATE_QUIET" != "yes" ]; then
18             echo "$log"
19         fi
20 fi
21
This page took 0.024833 seconds and 3 git commands to generate.