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:
@ -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
|
||||
|
Reference in New Issue
Block a user