From ec805f6d90dbd8de2bf5db0877040812c2aaf651 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 18 Mar 2023 13:24:19 +0000 Subject: [Minor] Post release fixes... --- rpm/rspamd.spec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rpm') diff --git a/rpm/rspamd.spec b/rpm/rspamd.spec index 1596622fa..d7f82d0ee 100644 --- a/rpm/rspamd.spec +++ b/rpm/rspamd.spec @@ -170,6 +170,10 @@ rm -rf %{buildroot} %post %{__chown} -R _rspamd:_rspamd %{_localstatedir}/lib/rspamd %{__chown} _rspamd:_rspamd %{_localstatedir}/log/rspamd +%if 0%{?el7} +# We need to clean old hyperscan files on upgrade: see https://github.com/rspamd/rspamd/issues/4441 +rm -f %{_localstatedir}/lib/rspamd/*.hs* +%endif systemctl --no-reload preset rspamd.service >/dev/null 2>&1 || : %preun -- cgit v1.2.3