diff --git a/icecream.spec b/icecream.spec index 3841b73..f9f8636 100644 --- a/icecream.spec +++ b/icecream.spec @@ -40,6 +40,7 @@ Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd +Requires(post): findutils %if %{with selinux} # For SELinux protection: @@ -203,6 +204,9 @@ restorecon -R %{_localstatedir}/cache/icecream /run/icecc 2>/dev/null %firewalld_reload %systemd_post iceccd.service icecc-scheduler.service + +# Remove files owned by the user 'icecream' (used by older versions). +find %{_localstatedir}/cache/icecream/ -user icecream -delete 2>/dev/null exit 0 %preun