mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #288 from whowutwut/jun_switch
Remove the Juniper directory if exists, cause symlink creation to fail
This commit is contained in:
commit
4494e4ffac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user