defect 3125260: make the %post part always return 0 so that rpm upgrade can finish as normal even when there's error in the %post

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2010-12-20 02:56:35 +00:00
parent b05dc625a2
commit ef3ac4cf29
4 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,8 @@ if [ "$1" -gt 1 ]; then #Ugrade only, restart daemon and migrate settings
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd -r
fi
%endif
exit 0
%changelog
* Wed May 2 2007 - Norm Nott nott@us.ibm.com
- Made changes to make this work on AIX

View File

@ -253,6 +253,7 @@ export XCATROOT PATH MANPATH
" >>/etc/profile
fi
%endif
exit 0
%preun
%ifos linux

View File

@ -201,6 +201,7 @@ if [ "$1" -gt "1" ]; then #only on upgrade for AIX...
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd -r
fi
%endif
exit 0
%preun
%ifos linux

View File

@ -120,6 +120,8 @@ $RPM_INSTALL_PREFIX0/sbin/xcatconfig -i
else
$RPM_INSTALL_PREFIX0/sbin/xcatconfig -u
fi
exit 0
%clean
%files