2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Need to add some check in the code to remove the Juniper directory

because the symlink does not get created when we are going from an
older release to the current release where this change was made
This commit is contained in:
Victor Hu
2015-10-20 11:08:52 -04:00
parent 1bb0e692bd
commit 9aed2456d3

View File

@ -402,6 +402,12 @@ if [ -x /usr/sbin/emgr ]; then # Check for emgr cmd
fi
%endif
# The Juniper directory is switched to Jun and a sylink is created
if [ -d $RPM_INSTALL_PREFIX0/share/xcat/devicetype/EthSwitch/Juniper ]; then
# need to remove the old directory otherwise the symlink won't get creatd correctly
rm -rf $RPM_INSTALL_PREFIX0/share/xcat/devicetype/EthSwitch/Juniper
fi
%post
%ifos linux
ln -sf $RPM_INSTALL_PREFIX0/sbin/xcatd /usr/sbin/xcatd