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:
		| @@ -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 | ||||
|   | ||||
| @@ -253,6 +253,7 @@ export XCATROOT PATH MANPATH | ||||
| " >>/etc/profile | ||||
| fi | ||||
| %endif | ||||
| exit 0 | ||||
|  | ||||
| %preun | ||||
| %ifos linux | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -120,6 +120,8 @@ $RPM_INSTALL_PREFIX0/sbin/xcatconfig -i | ||||
| else | ||||
| $RPM_INSTALL_PREFIX0/sbin/xcatconfig -u | ||||
| fi | ||||
| exit 0 | ||||
|  | ||||
| %clean | ||||
|  | ||||
| %files | ||||
|   | ||||
		Reference in New Issue
	
	Block a user