diff --git a/clamav.changes b/clamav.changes index bf5e1c5..7550ae1 100644 --- a/clamav.changes +++ b/clamav.changes @@ -33,6 +33,8 @@ Fri Apr 13 15:07:48 UTC 2018 - max@suse.com - Update key ring and add signature file. - Use system-wide LLVM instead of the deprecated bundled one. - Move pkgconfig stuff the main to the devel package. +- On update, remove obsolete option SubmitDetectionStats from + /etc/freshclam.conf otherwise freshclam refuses to start. ------------------------------------------------------------------- Wed Mar 7 13:15:11 UTC 2018 - max@suse.com diff --git a/clamav.spec b/clamav.spec index dcd3060..6c1c8f1 100644 --- a/clamav.spec +++ b/clamav.spec @@ -199,6 +199,11 @@ getent passwd vscan >/dev/null || \ %post systemd-tmpfiles --create %_tmpfilesdir/clamav.conf %service_add_post clamd.service freshclam.service clamav-milter.service +%if $1 == 2; then +# If upgrading, comment out obsolete config file options +# https://bugzilla.clamav.net/show_bug.cgi?id=12097 +sed -i '/^[[:space:]]*SubmitDetectionStats/s/^/# OBSOLETE: /' /etc/freshclam.conf +%endif %preun %service_del_preun clamd.service freshclam.service clamav-milter.service