Fixed a problem that if preinstall/preupgrade/postinstall/postupgrade script is empty, the product rpm will fail during insalling.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14768 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2013-01-07 05:51:54 +00:00
parent 8fed4c6d85
commit 2d5991f5ee

View File

@ -22,23 +22,17 @@ rm -rf $RPM_BUILD_ROOT
%changelog
%pre
if [ "$1" = "1" ] ; then
<<<INSERT_kitcomponent_preinstall_script_HERE>>>
elif [ "$1" = "2" ] ; then
<<<INSERT_kitcomponent_preupgrade_script_HERE>>>
fi
%post
if [ "$1" = "1" ] ; then
<<<INSERT_kitcomponent_postinstall_script_HERE>>>
elif [ "$1" = "2" ] ; then
<<<INSERT_kitcomponent_postupgrade_script_HERE>>>
fi
%preun
<<<INSERT_kitcomponent_preuninstall_script_HERE>>>