This commit is contained in:
parent
c0e27f9707
commit
f9901db0ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user