Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 561d5fe

Browse files
author
Luboš Luňák
committed
cleanup envs dir in %post in specfile
A different way of handling 2eed54a .
1 parent f5ed443 commit 561d5fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

suse/icecream.spec.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ make DESTDIR=$RPM_BUILD_ROOT install
8383
/usr/sbin/groupadd -r icecream 2> /dev/null || :
8484
/usr/sbin/useradd -r -g icecream -s /bin/false -c "Icecream Daemon" -d /var/cache/icecream icecream 2> /dev/null || :
8585

86-
%if 0%{?suse_version}
8786
%post
87+
# older icecream versions may have left some files owned by root:root in the cache
88+
rm -rf -- %_localstatedir/cache/icecream/*
89+
%if 0%{?suse_version}
8890
%{fillup_and_insserv -n icecream icecream}
8991
%endif
9092

0 commit comments

Comments
 (0)