fixed rpm installation error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2541 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e2a7fa2a53
commit
c0d7a0fd49
@ -58,26 +58,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%post
|
||||
%ifos linux
|
||||
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
|
||||
tmp=`rpm -q xCAT`
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ -f $RPM_INSTALL_PREFIX0/sbin/xcatd ]; then
|
||||
/etc/init.d/xcatd restart
|
||||
else
|
||||
tmp=`rpm -q xCATsn`
|
||||
if [ $? -eq 0 ]; then
|
||||
/etc/init.d/xcatd restart
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
%else
|
||||
#restart the xcatd on if xCAT or xCATsn is installed already
|
||||
tmp=`rpm -q xCAT`
|
||||
if [ $? -eq 0 ]; then
|
||||
if [ -f $RPM_INSTALL_PREFIX0/sbin/xcatd ]; then
|
||||
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/xcatstart
|
||||
else
|
||||
tmp=`rpm -q xCATsn`
|
||||
if [ $? -eq 0 ]; then
|
||||
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/xcatstart
|
||||
fi
|
||||
fi
|
||||
%endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user