summaryrefslogtreecommitdiffstats
path: root/rpm/rspamd.spec
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-18 13:24:19 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-18 13:24:19 +0000
commitec805f6d90dbd8de2bf5db0877040812c2aaf651 (patch)
treea08a21f4274eed9a74ff5e184de7abe7df758789 /rpm/rspamd.spec
parenta9e4b957a894b80691e01d6fa121c8d35f93140a (diff)
downloadrspamd-ec805f6d90dbd8de2bf5db0877040812c2aaf651.tar.gz
rspamd-ec805f6d90dbd8de2bf5db0877040812c2aaf651.zip
[Minor] Post release fixes...
Diffstat (limited to 'rpm/rspamd.spec')
-rw-r--r--rpm/rspamd.spec4
1 files changed, 4 insertions, 0 deletions
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