move back the postun section and add a condition to make it only run for the real uninstall

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-04-19 09:24:37 +00:00
parent d26a822248
commit bbebca4a9e

View File

@ -131,3 +131,14 @@ fi
/install/prescripts
%defattr(-,root,root)
%postun
if [ "$1" = "0" ]; then
%ifnos linux
if grep "^xcatd" /etc/inittab >/dev/null
then
/usr/sbin/rmitab xcatd >/dev/null
fi
%endif
true # so on aix we do not end up with an empty if stmt
fi