Re: clamav: freshclam configuration/parse problem
On Wed, Mar 14, 2007 at 06:00:02PM +0100, Loic Le Loarer wrote:
> Le mercredi 14 mars 2007 à 16:59:14 +0100, Tobias Ulbricht a écrit:
> >
> > Hello.
> >
> > My new configuration: freshclam.conf looks like this:
> >
> > <snip>
> > Foreground false
> > <snip>
> > ScriptedUpdates yes
> > NotifyClamd true
> > DatabaseMirror db.local.clamav.net
> > DatabaseMirror database.clamav.net
> > DatabaseMirror db.de.clamav.net
> >
> > Now, if there is an update, I get an error (so far only via cron,
> > since I was not testing when there was really an update available):
> >
> > WARNING: Clamd was NOT notified: Can't find or parse configuration file true
>
> Change the "NotifyClamd true" line into:
> NotifyClamd /etc/clamav/clamd.conf
>
> It seems the configuration file format has changed...
Hello Loic,
thanks a lot. Now I figured that there must be something wrong with
the postinst, or, at least, I should have been more careful in the
transition to the new file format.
As I've seen something like "upgrade_check" in the postinst, but I'm
not 100% sure, if this should have been fixed automatically during the
upgrade or not.
I just mailed to Stephen Gran, what I think is a bug, at least in a
fresh install. If he is not the one where the patch should go to, I
copy&paste for completeness to here:
--- /var/lib/dpkg/info/clamav-freshclam.postinst 2007-03-14 17:46:33.000000000 +0100
+++ /var/lib/dpkg/info/clamav-freshclam.postinst.bak 2007-03-14 17:45:19.000000000 +0100
@@ -254,7 +254,7 @@
if [ -n "$NotifyClamd" ] ; then
echo "NotifyClamd $NotifyClamd" >> $DEBCONFILE
else
- echo "NotifyClamd $notify" >> $DEBCONFILE
+ echo "NotifyClamd" >> $DEBCONFILE
fi
fi
if [ "$runas" != "cron" ] || [ "$runas" != "manual" ]; then
Thanks Loic! Cheers,
Tobias
>
> Best regards.
> --
> Loïc
>
> "heaven is not a place, it's a feeling"
--
Tobias Ulbricht/Daniel Hermann/Andreas Poenicke
IT-Beauftragte der Institute TKM und TFP
Universitaet Karlsruhe, Wolfgang-Gaede-Str. 1, D-76128 Karlsruhe
eMail: gaston@tkm.uni-karlsruhe.de , Phone: ++49-721-608-3588
Reply to: