Seems I found the reason:
debconf genarates wrong /etc/clamav/freshclam.conf file in case of upgrade.
Here is explanation:
If 'old' /etc/clamav/freshclam.conf file is installed debconf gets 'old'
value, i.e. 'true' and puts in in newer generated file:
$ sudo dpkg-reconfigure clamav-freshclam
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ FRESHCLAMCONFFILE=/etc/clamav/freshclam.conf
+ FRESHCLAMLOGFILE=/var/log/clamav/freshclam.log
+ DEBCONFILE=/var/lib/clamav/freshclam.conf
+ LOGROTFILE=/etc/logrotate.d/clamav-freshclam
+ DEBROTFILE=/var/lib/clamav/clamav-freshclam
++ check_ucf
++ ucf -h
++ grep -q debconf-ok
++ echo ok
+ UCFVER=ok
+ case "$1" in
+ dbowner=clamav
+ udlogfile=/var/log/clamav/freshclam.log
+ maxatt=5
+ db_metaget clamav-freshclam/local_mirror value
+ _db_cmd 'METAGET clamav-freshclam/local_mirror' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/local_mirror value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=db.local.clamav.net
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' db.local.clamav.net = '' ']'
+ rawmirrors=db.local.clamav.net
+ echo db.local.clamav.net
+ egrep -q '(\(|\))'
+ mirrors=db.local.clamav.net
+ db_metaget clamav-freshclam/autoupdate_freshclam value
+ _db_cmd 'METAGET clamav-freshclam/autoupdate_freshclam' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/autoupdate_freshclam value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=cron
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ runas=cron
+ '[' cron = ifup.d ']'
+ '[' cron = ifup.d ']'
+ '[' cron = daemon ']'
+ '[' cron = cron ']'
+ db_metaget clamav-freshclam/update_interval value
+ _db_cmd 'METAGET clamav-freshclam/update_interval' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/update_interval value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=24
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' 24 '!=' '' ']'
+ '[' cron '!=' cron ']'
+ '[' 24 -ge 24 ']'
+ echo 'To check for updates more often than hourly, please run freshclam as a
daemon.'
To check for updates more often than hourly, please run freshclam as a daemon.
+ cronhour=1
+ db_metaget clamav-freshclam/http_proxy value
+ _db_cmd 'METAGET clamav-freshclam/http_proxy' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/http_proxy value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' '' '!=' '' ']'
+ db_metaget clamav-freshclam/NotifyClamd value
+ _db_cmd 'METAGET clamav-freshclam/NotifyClamd' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/NotifyClamd value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=true
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' true = true ']'
+ notify=/etc/clamav/clamd.conf
+ slurp_config /etc/clamav/freshclam.conf
+ CLAMAVCONF=/etc/clamav/freshclam.conf
+ '[' -e /etc/clamav/freshclam.conf ']'
++ egrep -v '^[[:space:]]*(#|$)' /etc/clamav/freshclam.conf
++ awk '{print $1}'
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseOwner = DatabaseMirror ']'
+ '[' DatabaseOwner = VirusEvent ']'
+ '[' DatabaseOwner = OnUpdateExecute ']'
+ '[' DatabaseOwner = OnErrorExecute ']'
++ grep '^DatabaseOwner' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=clamav
+ '[' -z clamav ']'
+ '[' clamav '!=' DatabaseOwner ']'
+ export DatabaseOwner=clamav
+ DatabaseOwner=clamav
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' UpdateLogFile = DatabaseMirror ']'
+ '[' UpdateLogFile = VirusEvent ']'
+ '[' UpdateLogFile = OnUpdateExecute ']'
+ '[' UpdateLogFile = OnErrorExecute ']'
++ grep '^UpdateLogFile' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/log/clamav/freshclam.log
+ '[' -z /var/log/clamav/freshclam.log ']'
+ '[' /var/log/clamav/freshclam.log '!=' UpdateLogFile ']'
+ export UpdateLogFile=/var/log/clamav/freshclam.log
+ UpdateLogFile=/var/log/clamav/freshclam.log
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogVerbose = DatabaseMirror ']'
+ '[' LogVerbose = VirusEvent ']'
+ '[' LogVerbose = OnUpdateExecute ']'
+ '[' LogVerbose = OnErrorExecute ']'
++ grep '^LogVerbose' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' LogVerbose ']'
+ export LogVerbose=false
+ LogVerbose=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogSyslog = DatabaseMirror ']'
+ '[' LogSyslog = VirusEvent ']'
+ '[' LogSyslog = OnUpdateExecute ']'
+ '[' LogSyslog = OnErrorExecute ']'
++ grep '^LogSyslog' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' LogSyslog ']'
+ export LogSyslog=false
+ LogSyslog=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogFacility = DatabaseMirror ']'
+ '[' LogFacility = VirusEvent ']'
+ '[' LogFacility = OnUpdateExecute ']'
+ '[' LogFacility = OnErrorExecute ']'
++ grep '^LogFacility' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=LOG_LOCAL6
+ '[' -z LOG_LOCAL6 ']'
+ '[' LOG_LOCAL6 '!=' LogFacility ']'
+ export LogFacility=LOG_LOCAL6
+ LogFacility=LOG_LOCAL6
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogFileMaxSize = DatabaseMirror ']'
+ '[' LogFileMaxSize = VirusEvent ']'
+ '[' LogFileMaxSize = OnUpdateExecute ']'
+ '[' LogFileMaxSize = OnErrorExecute ']'
++ grep '^LogFileMaxSize' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=0
+ '[' -z 0 ']'
+ '[' 0 '!=' LogFileMaxSize ']'
+ export LogFileMaxSize=0
+ LogFileMaxSize=0
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' Foreground = DatabaseMirror ']'
+ '[' Foreground = VirusEvent ']'
+ '[' Foreground = OnUpdateExecute ']'
+ '[' Foreground = OnErrorExecute ']'
++ grep '^Foreground' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' Foreground ']'
+ export Foreground=false
+ Foreground=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' Debug = DatabaseMirror ']'
+ '[' Debug = VirusEvent ']'
+ '[' Debug = OnUpdateExecute ']'
+ '[' Debug = OnErrorExecute ']'
++ grep '^Debug' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' Debug ']'
+ export Debug=false
+ Debug=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' MaxAttempts = DatabaseMirror ']'
+ '[' MaxAttempts = VirusEvent ']'
+ '[' MaxAttempts = OnUpdateExecute ']'
+ '[' MaxAttempts = OnErrorExecute ']'
++ grep '^MaxAttempts' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=5
+ '[' -z 5 ']'
+ '[' 5 '!=' MaxAttempts ']'
+ export MaxAttempts=5
+ MaxAttempts=5
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseDirectory = DatabaseMirror ']'
+ '[' DatabaseDirectory = VirusEvent ']'
+ '[' DatabaseDirectory = OnUpdateExecute ']'
+ '[' DatabaseDirectory = OnErrorExecute ']'
++ grep '^DatabaseDirectory' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/lib/clamav/
+ '[' -z /var/lib/clamav/ ']'
+ '[' /var/lib/clamav/ '!=' DatabaseDirectory ']'
+ export DatabaseDirectory=/var/lib/clamav/
+ DatabaseDirectory=/var/lib/clamav/
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DNSDatabaseInfo = DatabaseMirror ']'
+ '[' DNSDatabaseInfo = VirusEvent ']'
+ '[' DNSDatabaseInfo = OnUpdateExecute ']'
+ '[' DNSDatabaseInfo = OnErrorExecute ']'
++ grep '^DNSDatabaseInfo' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=current.cvd.clamav.net
+ '[' -z current.cvd.clamav.net ']'
+ '[' current.cvd.clamav.net '!=' DNSDatabaseInfo ']'
+ export DNSDatabaseInfo=current.cvd.clamav.net
+ DNSDatabaseInfo=current.cvd.clamav.net
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' AllowSupplementaryGroups = DatabaseMirror ']'
+ '[' AllowSupplementaryGroups = VirusEvent ']'
+ '[' AllowSupplementaryGroups = OnUpdateExecute ']'
+ '[' AllowSupplementaryGroups = OnErrorExecute ']'
++ grep '^AllowSupplementaryGroups' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' AllowSupplementaryGroups ']'
+ export AllowSupplementaryGroups=false
+ AllowSupplementaryGroups=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' PidFile = DatabaseMirror ']'
+ '[' PidFile = VirusEvent ']'
+ '[' PidFile = OnUpdateExecute ']'
+ '[' PidFile = OnErrorExecute ']'
++ grep '^PidFile' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/run/clamav/freshclam.pid
+ '[' -z /var/run/clamav/freshclam.pid ']'
+ '[' /var/run/clamav/freshclam.pid '!=' PidFile ']'
+ export PidFile=/var/run/clamav/freshclam.pid
+ PidFile=/var/run/clamav/freshclam.pid
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' ConnectTimeout = DatabaseMirror ']'
+ '[' ConnectTimeout = VirusEvent ']'
+ '[' ConnectTimeout = OnUpdateExecute ']'
+ '[' ConnectTimeout = OnErrorExecute ']'
++ grep '^ConnectTimeout' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=30
+ '[' -z 30 ']'
+ '[' 30 '!=' ConnectTimeout ']'
+ export ConnectTimeout=30
+ ConnectTimeout=30
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' ReceiveTimeout = DatabaseMirror ']'
+ '[' ReceiveTimeout = VirusEvent ']'
+ '[' ReceiveTimeout = OnUpdateExecute ']'
+ '[' ReceiveTimeout = OnErrorExecute ']'
++ grep '^ReceiveTimeout' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=30
+ '[' -z 30 ']'
+ '[' 30 '!=' ReceiveTimeout ']'
+ export ReceiveTimeout=30
+ ReceiveTimeout=30
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' NotifyClamd = DatabaseMirror ']'
+ '[' NotifyClamd = VirusEvent ']'
+ '[' NotifyClamd = OnUpdateExecute ']'
+ '[' NotifyClamd = OnErrorExecute ']'
++ grep '^NotifyClamd' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=true
+ '[' -z true ']'
+ '[' true '!=' NotifyClamd ']'
+ export NotifyClamd=true
+ NotifyClamd=true
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z '' ']'
++ grep '^DatabaseMirror' /etc/clamav/freshclam.conf
++ awk '{print $2}'
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='db.local.clamav.net '
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='database.clamav.net db.local.clamav.net '
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='db.ru.clamav.net database.clamav.net db.local.clamav.net '
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ '[' 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' '!='
DatabaseMirror ']'
+ export 'DatabaseMirror=db.ru.clamav.net database.clamav.net
db.local.clamav.net '
+ DatabaseMirror='db.ru.clamav.net database.clamav.net db.local.clamav.net '
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ continue
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ continue
+ '[' -n clamav ']'
+ '[' clamav '!=' clamav ']'
+ '[' -n /var/log/clamav/freshclam.log ']'
+ '[' /var/log/clamav/freshclam.log '!=' /var/log/clamav/freshclam.log ']'
+ '[' -n 5 ']'
+ '[' 5 '!=' 5 ']'
+ '[' cron = cron ']'
++ od -A n -N 2 -l
+ min=43
+ FRESHCLAMCRON=/etc/cron.d/clamav-freshclam
+ FRESHCLAMTEMP=/var/lib/clamav/freshclam.cron
+ echo '43 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam
>/dev/null'
+ ucf_cleanup /etc/cron.d/clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
++ grep /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/cron.d/clamav-freshclam /var/lib/clamav/freshclam.cron
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ sourcefile=/var/lib/clamav/freshclam.cron
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ '[' -f /etc/cron.d/clamav-freshclam ']'
+
add_to_ucf /etc/cron.d/clamav-freshclam
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ grep -q /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
+ '[' ok = ok ']'
+
ucf --three-way --debconf-ok /var/lib/clamav/freshclam.cron
/etc/cron.d/clamav-freshclam
Replacing config file /etc/cron.d/clamav-freshclam with new version
+ rm -f /var/lib/clamav/freshclam.cron
+ '[' cron = ifup.d ']'
+ '[' -f /var/lib/clamav/interface ']'
+ dpkg --compare-versions 0.90~rc3-1 lt 0.79
+ '[' -z false ']'
+ '[' -z false ']'
+ '[' -z LOG_LOCAL6 ']'
+ '[' -z 0 ']'
+ '[' -z false ']'
+ '[' -z false ']'
+ '[' -z /var/lib/clamav/ ']'
+ '[' -z current.cvd.clamav.net ']'
+ '[' -z false ']'
+ '[' -z /var/run/clamav/freshclam.pid ']'
+ '[' -z 30 ']'
+ '[' -z 30 ']'
+ cat
+ '[' -n /etc/clamav/clamd.conf ']'
+ '[' -n true ']'
+ echo 'NotifyClamd true'
+ '[' cron '!=' cron ']'
+ '[' cron '!=' manual ']'
+ '[' -n '' ']'
+ '[' -n db.local.clamav.net ']'
+ for i in '$mirrors'
+ echo 'DatabaseMirror db.local.clamav.net'
+ echo db.local.clamav.net
+ grep -q database.clamav.net
+ echo 'DatabaseMirror database.clamav.net'
+ '[' -n '' ']'
+ '[' -n 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ for m in '$DatabaseMirror'
+ grep -q db.ru.clamav.net /var/lib/clamav/freshclam.conf
+ echo 'DatabaseMirror db.ru.clamav.net'
+ for m in '$DatabaseMirror'
+ grep -q database.clamav.net /var/lib/clamav/freshclam.conf
+ for m in '$DatabaseMirror'
+ grep -q db.local.clamav.net /var/lib/clamav/freshclam.conf
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ ucf_cleanup /etc/clamav/freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
++ grep /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/clamav/freshclam.conf /var/lib/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ sourcefile=/var/lib/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ '[' -f /etc/clamav/freshclam.conf ']'
+
add_to_ucf /etc/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ grep -q /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
+ '[' ok = ok ']'
+
ucf --three-way --debconf-ok /var/lib/clamav/freshclam.conf
/etc/clamav/freshclam.conf
+ rm -f /var/lib/clamav/freshclam.conf
+ db_stop
+ echo STOP
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ touch /var/log/clamav/freshclam.log
+ chmod 640 /var/log/clamav/freshclam.log
+ chown clamav:adm /var/log/clamav/freshclam.log
+ '[' -n '' ']'
+ chmod 644 /etc/clamav/freshclam.conf
+ chown clamav:adm /etc/clamav/freshclam.conf
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//main.cvd ']'
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//daily.cvd ']'
+ '[' cron = daemon ']'
+ '[' cron = ifup.d ']'
+ echo 'Starting database update: '
Starting database update:
+ /etc/init.d/clamav-freshclam no-daemon
ClamAV update process started at Fri Feb 16 08:30:51 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
daily.inc is up to date (version: 2579, sigs: 7877, f-level: 13, builder:
ccordes)
WARNING: Current functionality level = 12, recommended = 13
Please check if ClamAV tools are linked against proper version of libclamav
DON'T PANIC! Read http://www.clamav.net/faq.html
+ update-rc.d -f clamav-freshclam remove
+ exit 0
If I manually change /etc/clamav/freshclam.conf file from
NotifyClamd true
to
NotifyClamd /etc/clamav/clamd.conf
then debconf makes correct /etc/clamav/freshclam.conf:
$ sudo dpkg-reconfigure clamav-freshclam
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ FRESHCLAMCONFFILE=/etc/clamav/freshclam.conf
+ FRESHCLAMLOGFILE=/var/log/clamav/freshclam.log
+ DEBCONFILE=/var/lib/clamav/freshclam.conf
+ LOGROTFILE=/etc/logrotate.d/clamav-freshclam
+ DEBROTFILE=/var/lib/clamav/clamav-freshclam
++ check_ucf
++ ucf -h
++ grep -q debconf-ok
++ echo ok
+ UCFVER=ok
+ case "$1" in
+ dbowner=clamav
+ udlogfile=/var/log/clamav/freshclam.log
+ maxatt=5
+ db_metaget clamav-freshclam/local_mirror value
+ _db_cmd 'METAGET clamav-freshclam/local_mirror' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/local_mirror value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=db.local.clamav.net
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' db.local.clamav.net = '' ']'
+ rawmirrors=db.local.clamav.net
+ echo db.local.clamav.net
+ egrep -q '(\(|\))'
+ mirrors=db.local.clamav.net
+ db_metaget clamav-freshclam/autoupdate_freshclam value
+ _db_cmd 'METAGET clamav-freshclam/autoupdate_freshclam' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/autoupdate_freshclam value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=cron
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ runas=cron
+ '[' cron = ifup.d ']'
+ '[' cron = ifup.d ']'
+ '[' cron = daemon ']'
+ '[' cron = cron ']'
+ db_metaget clamav-freshclam/update_interval value
+ _db_cmd 'METAGET clamav-freshclam/update_interval' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/update_interval value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=24
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' 24 '!=' '' ']'
+ '[' cron '!=' cron ']'
+ '[' 24 -ge 24 ']'
+ echo 'To check for updates more often than hourly, please run freshclam as a
daemon.'
To check for updates more often than hourly, please run freshclam as a daemon.
+ cronhour=1
+ db_metaget clamav-freshclam/http_proxy value
+ _db_cmd 'METAGET clamav-freshclam/http_proxy' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/http_proxy value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' '' '!=' '' ']'
+ db_metaget clamav-freshclam/NotifyClamd value
+ _db_cmd 'METAGET clamav-freshclam/NotifyClamd' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/NotifyClamd value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=true
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' true = true ']'
+ notify=/etc/clamav/clamd.conf
+ slurp_config /etc/clamav/freshclam.conf
+ CLAMAVCONF=/etc/clamav/freshclam.conf
+ '[' -e /etc/clamav/freshclam.conf ']'
++ egrep -v '^[[:space:]]*(#|$)' /etc/clamav/freshclam.conf
++ awk '{print $1}'
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseOwner = DatabaseMirror ']'
+ '[' DatabaseOwner = VirusEvent ']'
+ '[' DatabaseOwner = OnUpdateExecute ']'
+ '[' DatabaseOwner = OnErrorExecute ']'
++ grep '^DatabaseOwner' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=clamav
+ '[' -z clamav ']'
+ '[' clamav '!=' DatabaseOwner ']'
+ export DatabaseOwner=clamav
+ DatabaseOwner=clamav
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' UpdateLogFile = DatabaseMirror ']'
+ '[' UpdateLogFile = VirusEvent ']'
+ '[' UpdateLogFile = OnUpdateExecute ']'
+ '[' UpdateLogFile = OnErrorExecute ']'
++ grep '^UpdateLogFile' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/log/clamav/freshclam.log
+ '[' -z /var/log/clamav/freshclam.log ']'
+ '[' /var/log/clamav/freshclam.log '!=' UpdateLogFile ']'
+ export UpdateLogFile=/var/log/clamav/freshclam.log
+ UpdateLogFile=/var/log/clamav/freshclam.log
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogVerbose = DatabaseMirror ']'
+ '[' LogVerbose = VirusEvent ']'
+ '[' LogVerbose = OnUpdateExecute ']'
+ '[' LogVerbose = OnErrorExecute ']'
++ grep '^LogVerbose' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' LogVerbose ']'
+ export LogVerbose=false
+ LogVerbose=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogSyslog = DatabaseMirror ']'
+ '[' LogSyslog = VirusEvent ']'
+ '[' LogSyslog = OnUpdateExecute ']'
+ '[' LogSyslog = OnErrorExecute ']'
++ grep '^LogSyslog' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' LogSyslog ']'
+ export LogSyslog=false
+ LogSyslog=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogFacility = DatabaseMirror ']'
+ '[' LogFacility = VirusEvent ']'
+ '[' LogFacility = OnUpdateExecute ']'
+ '[' LogFacility = OnErrorExecute ']'
++ grep '^LogFacility' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=LOG_LOCAL6
+ '[' -z LOG_LOCAL6 ']'
+ '[' LOG_LOCAL6 '!=' LogFacility ']'
+ export LogFacility=LOG_LOCAL6
+ LogFacility=LOG_LOCAL6
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' LogFileMaxSize = DatabaseMirror ']'
+ '[' LogFileMaxSize = VirusEvent ']'
+ '[' LogFileMaxSize = OnUpdateExecute ']'
+ '[' LogFileMaxSize = OnErrorExecute ']'
++ grep '^LogFileMaxSize' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=0
+ '[' -z 0 ']'
+ '[' 0 '!=' LogFileMaxSize ']'
+ export LogFileMaxSize=0
+ LogFileMaxSize=0
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' Foreground = DatabaseMirror ']'
+ '[' Foreground = VirusEvent ']'
+ '[' Foreground = OnUpdateExecute ']'
+ '[' Foreground = OnErrorExecute ']'
++ grep '^Foreground' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' Foreground ']'
+ export Foreground=false
+ Foreground=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' Debug = DatabaseMirror ']'
+ '[' Debug = VirusEvent ']'
+ '[' Debug = OnUpdateExecute ']'
+ '[' Debug = OnErrorExecute ']'
++ grep '^Debug' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' Debug ']'
+ export Debug=false
+ Debug=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' MaxAttempts = DatabaseMirror ']'
+ '[' MaxAttempts = VirusEvent ']'
+ '[' MaxAttempts = OnUpdateExecute ']'
+ '[' MaxAttempts = OnErrorExecute ']'
++ grep '^MaxAttempts' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=5
+ '[' -z 5 ']'
+ '[' 5 '!=' MaxAttempts ']'
+ export MaxAttempts=5
+ MaxAttempts=5
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseDirectory = DatabaseMirror ']'
+ '[' DatabaseDirectory = VirusEvent ']'
+ '[' DatabaseDirectory = OnUpdateExecute ']'
+ '[' DatabaseDirectory = OnErrorExecute ']'
++ grep '^DatabaseDirectory' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/lib/clamav/
+ '[' -z /var/lib/clamav/ ']'
+ '[' /var/lib/clamav/ '!=' DatabaseDirectory ']'
+ export DatabaseDirectory=/var/lib/clamav/
+ DatabaseDirectory=/var/lib/clamav/
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DNSDatabaseInfo = DatabaseMirror ']'
+ '[' DNSDatabaseInfo = VirusEvent ']'
+ '[' DNSDatabaseInfo = OnUpdateExecute ']'
+ '[' DNSDatabaseInfo = OnErrorExecute ']'
++ grep '^DNSDatabaseInfo' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=current.cvd.clamav.net
+ '[' -z current.cvd.clamav.net ']'
+ '[' current.cvd.clamav.net '!=' DNSDatabaseInfo ']'
+ export DNSDatabaseInfo=current.cvd.clamav.net
+ DNSDatabaseInfo=current.cvd.clamav.net
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' AllowSupplementaryGroups = DatabaseMirror ']'
+ '[' AllowSupplementaryGroups = VirusEvent ']'
+ '[' AllowSupplementaryGroups = OnUpdateExecute ']'
+ '[' AllowSupplementaryGroups = OnErrorExecute ']'
++ grep '^AllowSupplementaryGroups' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=false
+ '[' -z false ']'
+ '[' false '!=' AllowSupplementaryGroups ']'
+ export AllowSupplementaryGroups=false
+ AllowSupplementaryGroups=false
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' PidFile = DatabaseMirror ']'
+ '[' PidFile = VirusEvent ']'
+ '[' PidFile = OnUpdateExecute ']'
+ '[' PidFile = OnErrorExecute ']'
++ grep '^PidFile' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/var/run/clamav/freshclam.pid
+ '[' -z /var/run/clamav/freshclam.pid ']'
+ '[' /var/run/clamav/freshclam.pid '!=' PidFile ']'
+ export PidFile=/var/run/clamav/freshclam.pid
+ PidFile=/var/run/clamav/freshclam.pid
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' ConnectTimeout = DatabaseMirror ']'
+ '[' ConnectTimeout = VirusEvent ']'
+ '[' ConnectTimeout = OnUpdateExecute ']'
+ '[' ConnectTimeout = OnErrorExecute ']'
++ grep '^ConnectTimeout' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=30
+ '[' -z 30 ']'
+ '[' 30 '!=' ConnectTimeout ']'
+ export ConnectTimeout=30
+ ConnectTimeout=30
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' ReceiveTimeout = DatabaseMirror ']'
+ '[' ReceiveTimeout = VirusEvent ']'
+ '[' ReceiveTimeout = OnUpdateExecute ']'
+ '[' ReceiveTimeout = OnErrorExecute ']'
++ grep '^ReceiveTimeout' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=30
+ '[' -z 30 ']'
+ '[' 30 '!=' ReceiveTimeout ']'
+ export ReceiveTimeout=30
+ ReceiveTimeout=30
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' NotifyClamd = DatabaseMirror ']'
+ '[' NotifyClamd = VirusEvent ']'
+ '[' NotifyClamd = OnUpdateExecute ']'
+ '[' NotifyClamd = OnErrorExecute ']'
++ grep '^NotifyClamd' /etc/clamav/freshclam.conf
++ head -n1
++ awk '{print $2}'
+ value=/etc/clamav/clamd.conf
+ '[' -z /etc/clamav/clamd.conf ']'
+ '[' /etc/clamav/clamd.conf '!=' NotifyClamd ']'
+ export NotifyClamd=/etc/clamav/clamd.conf
+ NotifyClamd=/etc/clamav/clamd.conf
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z '' ']'
++ grep '^DatabaseMirror' /etc/clamav/freshclam.conf
++ awk '{print $2}'
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='db.local.clamav.net '
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='database.clamav.net db.local.clamav.net '
+ for i in '`grep ^$variable $CLAMAVCONF | awk '\''{print $2}'\''`'
+ value='db.ru.clamav.net database.clamav.net db.local.clamav.net '
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ '[' 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' '!='
DatabaseMirror ']'
+ export 'DatabaseMirror=db.ru.clamav.net database.clamav.net
db.local.clamav.net '
+ DatabaseMirror='db.ru.clamav.net database.clamav.net db.local.clamav.net '
+ unset value
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ continue
+ for variable in '`egrep -v '\''^[[:space:]]*(#|$)'\'' "$CLAMAVCONF" |
awk '\''{print $1}'\''`'
+ '[' DatabaseMirror = DatabaseMirror ']'
+ '[' -z 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ continue
+ '[' -n clamav ']'
+ '[' clamav '!=' clamav ']'
+ '[' -n /var/log/clamav/freshclam.log ']'
+ '[' /var/log/clamav/freshclam.log '!=' /var/log/clamav/freshclam.log ']'
+ '[' -n 5 ']'
+ '[' 5 '!=' 5 ']'
+ '[' cron = cron ']'
++ od -A n -N 2 -l
+ min=25
+ FRESHCLAMCRON=/etc/cron.d/clamav-freshclam
+ FRESHCLAMTEMP=/var/lib/clamav/freshclam.cron
+ echo '25 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam
>/dev/null'
+ ucf_cleanup /etc/cron.d/clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
++ grep /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/cron.d/clamav-freshclam /var/lib/clamav/freshclam.cron
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ sourcefile=/var/lib/clamav/freshclam.cron
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ '[' -f /etc/cron.d/clamav-freshclam ']'
+
add_to_ucf /etc/cron.d/clamav-freshclam
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ grep -q /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
+ '[' ok = ok ']'
+
ucf --three-way --debconf-ok /var/lib/clamav/freshclam.cron
/etc/cron.d/clamav-freshclam
Replacing config file /etc/cron.d/clamav-freshclam with new version
+ rm -f /var/lib/clamav/freshclam.cron
+ '[' cron = ifup.d ']'
+ '[' -f /var/lib/clamav/interface ']'
+ dpkg --compare-versions 0.90~rc3-1 lt 0.79
+ '[' -z false ']'
+ '[' -z false ']'
+ '[' -z LOG_LOCAL6 ']'
+ '[' -z 0 ']'
+ '[' -z false ']'
+ '[' -z false ']'
+ '[' -z /var/lib/clamav/ ']'
+ '[' -z current.cvd.clamav.net ']'
+ '[' -z false ']'
+ '[' -z /var/run/clamav/freshclam.pid ']'
+ '[' -z 30 ']'
+ '[' -z 30 ']'
+ cat
+ '[' -n /etc/clamav/clamd.conf ']'
+ '[' -n /etc/clamav/clamd.conf ']'
+ echo 'NotifyClamd /etc/clamav/clamd.conf'
+ '[' cron '!=' cron ']'
+ '[' cron '!=' manual ']'
+ '[' -n '' ']'
+ '[' -n db.local.clamav.net ']'
+ for i in '$mirrors'
+ echo 'DatabaseMirror db.local.clamav.net'
+ echo db.local.clamav.net
+ grep -q database.clamav.net
+ echo 'DatabaseMirror database.clamav.net'
+ '[' -n '' ']'
+ '[' -n 'db.ru.clamav.net database.clamav.net db.local.clamav.net ' ']'
+ for m in '$DatabaseMirror'
+ grep -q db.ru.clamav.net /var/lib/clamav/freshclam.conf
+ echo 'DatabaseMirror db.ru.clamav.net'
+ for m in '$DatabaseMirror'
+ grep -q database.clamav.net /var/lib/clamav/freshclam.conf
+ for m in '$DatabaseMirror'
+ grep -q db.local.clamav.net /var/lib/clamav/freshclam.conf
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ ucf_cleanup /etc/clamav/freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
++ grep /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/clamav/freshclam.conf /var/lib/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ sourcefile=/var/lib/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ '[' -f /etc/clamav/freshclam.conf ']'
+
add_to_ucf /etc/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ grep -q /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
+ '[' ok = ok ']'
+
ucf --three-way --debconf-ok /var/lib/clamav/freshclam.conf
/etc/clamav/freshclam.conf
+ rm -f /var/lib/clamav/freshclam.conf
+ db_stop
+ echo STOP
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ touch /var/log/clamav/freshclam.log
+ chmod 640 /var/log/clamav/freshclam.log
+ chown clamav:adm /var/log/clamav/freshclam.log
+ '[' -n '' ']'
+ chmod 644 /etc/clamav/freshclam.conf
+ chown clamav:adm /etc/clamav/freshclam.conf
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//main.cvd ']'
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//daily.cvd ']'
+ cp /usr/share/doc/clamav-freshclam/examples/daily.cvd /var/lib/clamav/
+ '[' cron = daemon ']'
+ '[' cron = ifup.d ']'
+ echo 'Starting database update: '
Starting database update:
+ /etc/init.d/clamav-freshclam no-daemon
ClamAV update process started at Fri Feb 16 08:28:56 2007
main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm)
daily.inc is up to date (version: 2579, sigs: 7877, f-level: 13, builder:
ccordes)
WARNING: Current functionality level = 12, recommended = 13
Please check if ClamAV tools are linked against proper version of libclamav
DON'T PANIC! Read http://www.clamav.net/faq.html
+ update-rc.d -f clamav-freshclam remove
+ exit 0
If I remove /etc/clamav/freshclam.conf (modelling fresh installation)
debconf makes correct file:
$ sudo dpkg-reconfigure clamav-freshclam
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ FRESHCLAMCONFFILE=/etc/clamav/freshclam.conf
+ FRESHCLAMLOGFILE=/var/log/clamav/freshclam.log
+ DEBCONFILE=/var/lib/clamav/freshclam.conf
+ LOGROTFILE=/etc/logrotate.d/clamav-freshclam
+ DEBROTFILE=/var/lib/clamav/clamav-freshclam
++ check_ucf
++ ucf -h
++ grep -q debconf-ok
++ echo ok
+ UCFVER=ok
+ case "$1" in
+ dbowner=clamav
+ udlogfile=/var/log/clamav/freshclam.log
+ maxatt=5
+ db_metaget clamav-freshclam/local_mirror value
+ _db_cmd 'METAGET clamav-freshclam/local_mirror' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/local_mirror value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=db.local.clamav.net
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' db.local.clamav.net = '' ']'
+ rawmirrors=db.local.clamav.net
+ echo db.local.clamav.net
+ egrep -q '(\(|\))'
+ mirrors=db.local.clamav.net
+ db_metaget clamav-freshclam/autoupdate_freshclam value
+ _db_cmd 'METAGET clamav-freshclam/autoupdate_freshclam' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/autoupdate_freshclam value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=cron
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ runas=cron
+ '[' cron = ifup.d ']'
+ '[' cron = ifup.d ']'
+ '[' cron = daemon ']'
+ '[' cron = cron ']'
+ db_metaget clamav-freshclam/update_interval value
+ _db_cmd 'METAGET clamav-freshclam/update_interval' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/update_interval value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=24
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' 24 '!=' '' ']'
+ '[' cron '!=' cron ']'
+ '[' 24 -ge 24 ']'
+ echo 'To check for updates more often than hourly, please run freshclam as a
daemon.'
To check for updates more often than hourly, please run freshclam as a daemon.
+ cronhour=1
+ db_metaget clamav-freshclam/http_proxy value
+ _db_cmd 'METAGET clamav-freshclam/http_proxy' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/http_proxy value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' '' '!=' '' ']'
+ db_metaget clamav-freshclam/NotifyClamd value
+ _db_cmd 'METAGET clamav-freshclam/NotifyClamd' value
+ IFS=' '
+ printf '%s\n' 'METAGET clamav-freshclam/NotifyClamd value'
+ IFS='
'
+ read -r _db_internal_line
+ RET=true
+ case ${_db_internal_line%%[ ]*} in
+ return 0
+ '[' true = true ']'
+ notify=/etc/clamav/clamd.conf
+ slurp_config /etc/clamav/freshclam.conf
+ CLAMAVCONF=/etc/clamav/freshclam.conf
+ '[' -e /etc/clamav/freshclam.conf ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' cron = cron ']'
++ od -A n -N 2 -l
+ min=44
+ FRESHCLAMCRON=/etc/cron.d/clamav-freshclam
+ FRESHCLAMTEMP=/var/lib/clamav/freshclam.cron
+ echo '44 */1 * * * clamav [ -x /usr/bin/freshclam ] && /usr/bin/freshclam
>/dev/null'
+ ucf_cleanup /etc/cron.d/clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
++ grep /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/cron.d/clamav-freshclam /var/lib/clamav/freshclam.cron
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ sourcefile=/var/lib/clamav/freshclam.cron
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ '[' -f /etc/cron.d/clamav-freshclam ']'
+
add_to_ucf /etc/cron.d/clamav-freshclam
/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ configfile=/etc/cron.d/clamav-freshclam
+ ucffile=/var/lib/ucf/cache/:etc:cron.d:clamav-freshclam
+ grep -q /etc/cron.d/clamav-freshclam /var/lib/ucf/hashfile
+ '[' ok = ok ']'
+
ucf --three-way --debconf-ok /var/lib/clamav/freshclam.cron
/etc/cron.d/clamav-freshclam
Replacing config file /etc/cron.d/clamav-freshclam with new version
+ rm -f /var/lib/clamav/freshclam.cron
+ '[' cron = ifup.d ']'
+ '[' -f /var/lib/clamav/interface ']'
+ dpkg --compare-versions 0.90~rc3-1 lt 0.79
+ '[' -z '' ']'
+ LogVerbose=false
+ '[' -z '' ']'
+ LogSyslog=false
+ '[' -z '' ']'
+ LogFacility=LOG_LOCAL6
+ '[' -z '' ']'
+ LogFileMaxSize=0
+ '[' -z '' ']'
+ Foreground=false
+ '[' -z '' ']'
+ Debug=false
+ '[' -z '' ']'
+ DatabaseDirectory=/var/lib/clamav/
+ '[' -z '' ']'
+ DNSDatabaseInfo=current.cvd.clamav.net
+ '[' -z '' ']'
+ AllowSupplementaryGroups=false
+ '[' -z '' ']'
+ PidFile=/var/run/clamav/freshclam.pid
+ '[' -z '' ']'
+ ConnectTimeout=30
+ '[' -z '' ']'
+ ReceiveTimeout=30
+ cat
+ '[' -n /etc/clamav/clamd.conf ']'
+ '[' -n '' ']'
+ echo NotifyClamd
+ '[' cron '!=' cron ']'
+ '[' cron '!=' manual ']'
+ '[' -n '' ']'
+ '[' -n db.local.clamav.net ']'
+ for i in '$mirrors'
+ echo 'DatabaseMirror db.local.clamav.net'
+ echo db.local.clamav.net
+ grep -q database.clamav.net
+ echo 'DatabaseMirror database.clamav.net'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ ucf_cleanup /etc/clamav/freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
++ grep /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
++ wc -l
+ '[' 1 -gt 1 ']'
+
ucf_upgrade_check /etc/clamav/freshclam.conf /var/lib/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ sourcefile=/var/lib/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ '[' -f /etc/clamav/freshclam.conf ']'
+ '[' -d /var/lib/ucf/cache ']'
+ cp /var/lib/clamav/freshclam.conf /etc/clamav/freshclam.conf
+
add_to_ucf /etc/clamav/freshclam.conf
/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ configfile=/etc/clamav/freshclam.conf
+ ucffile=/var/lib/ucf/cache/:etc:clamav:freshclam.conf
+ grep -q /etc/clamav/freshclam.conf /var/lib/ucf/hashfile
+ rm -f /var/lib/clamav/freshclam.conf
+ db_stop
+ echo STOP
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-up.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/network/if-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-down.d/clamav-freshclam-ifupdown ']'
+ for script
in /etc/network/if-up.d/clamav-freshclam-ifupdown
/etc/network/if-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-down.d/clamav-freshclam-ifupdown
/etc/ppp/ip-up.d/clamav-freshclam-ifupdown
+ '[' -e /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ '[' -x /etc/ppp/ip-up.d/clamav-freshclam-ifupdown ']'
+ touch /var/log/clamav/freshclam.log
+ chmod 640 /var/log/clamav/freshclam.log
+ chown clamav:adm /var/log/clamav/freshclam.log
+ '[' -n '' ']'
+ chmod 644 /etc/clamav/freshclam.conf
+ chown clamav:adm /etc/clamav/freshclam.conf
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//main.cvd ']'
+ for db in main daily
+ '[' '!' -e /var/lib/clamav//daily.cvd ']'
+ '[' cron = daemon ']'
+ '[' cron = ifup.d ']'
+ echo 'Starting database update: '
Starting database update:
+ /etc/init.d/clamav-freshclam no-daemon
ERROR: Parse error at line 19: Option NotifyClamd requires string argument.
WARNING: You must specify at least one database mirror.
+ update-rc.d -f clamav-freshclam remove
+ exit 0
--
Sincerely yours/С уважением,
Damir Islamov/Дамир Исламов
email: [EMAIL PROTECTED]