This commit is contained in:
parent
c0e27f9707
commit
f9901db0ae
@ -199,11 +199,11 @@ getent passwd vscan >/dev/null || \
|
|||||||
%post
|
%post
|
||||||
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
systemd-tmpfiles --create %_tmpfilesdir/clamav.conf
|
||||||
%service_add_post clamd.service freshclam.service clamav-milter.service
|
%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
|
# If upgrading, comment out obsolete config file options
|
||||||
# https://bugzilla.clamav.net/show_bug.cgi?id=12097
|
# https://bugzilla.clamav.net/show_bug.cgi?id=12097
|
||||||
sed -i '/^[[:space:]]*SubmitDetectionStats/s/^/# OBSOLETE: /' /etc/freshclam.conf
|
grep -q '^[[:space:]]*SubmitDetectionStats' /etc/freshclam.conf &&
|
||||||
%endif
|
sed -i '/^[[:space:]]*SubmitDetectionStats/s/^/\# OBSOLETE: /' /etc/freshclam.conf ||:
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%service_del_preun clamd.service freshclam.service clamav-milter.service
|
%service_del_preun clamd.service freshclam.service clamav-milter.service
|
||||||
|
Loading…
Reference in New Issue
Block a user