From 0ae50e1d5566672e32a4ad561f9146a2088aa067 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Nov 04 2016 14:03:21 +0000 Subject: remove files owned by the old user 'icecream' from /var/cache/icecream Commit 575176a72859 ("Update to proper user") changed the user name from 'icecream' to 'icecc'. This seems completely pointless to me, but whatever. We must delete leftover files owned by 'icecream' from under /var/cache/icecream, because otherwise iceccd will attempt to do it by itself and fail. --- 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