From f9901db0aea4f4e6e00482eb6c06d5f9514585b220125365211b04166b4b4c51 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 18 Apr 2018 11:48:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/security/clamav?expand=0&rev=164 --- clamav.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clamav.spec b/clamav.spec index 6c1c8f1..ebad8da 100644 --- a/clamav.spec +++ b/clamav.spec @@ -199,11 +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 +test $1 -eq 2 && # 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 +grep -q '^[[:space:]]*SubmitDetectionStats' /etc/freshclam.conf && +sed -i '/^[[:space:]]*SubmitDetectionStats/s/^/\# OBSOLETE: /' /etc/freshclam.conf ||: %preun %service_del_preun clamd.service freshclam.service clamav-milter.service