diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-18 13:24:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-18 13:24:19 +0000 |
commit | ec805f6d90dbd8de2bf5db0877040812c2aaf651 (patch) | |
tree | a08a21f4274eed9a74ff5e184de7abe7df758789 /rpm/rspamd.spec | |
parent | a9e4b957a894b80691e01d6fa121c8d35f93140a (diff) | |
download | rspamd-ec805f6d90dbd8de2bf5db0877040812c2aaf651.tar.gz rspamd-ec805f6d90dbd8de2bf5db0877040812c2aaf651.zip |
[Minor] Post release fixes...
Diffstat (limited to 'rpm/rspamd.spec')
-rw-r--r-- | rpm/rspamd.spec | 4 |
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 |