From 9aed2456d39d81347802669c04ed75bd6f0264df Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 20 Oct 2015 11:08:52 -0400 Subject: [PATCH] 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 --- xCAT-server/xCAT-server.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-server/xCAT-server.spec b/xCAT-server/xCAT-server.spec index 62b23a236..423f162f1 100644 --- a/xCAT-server/xCAT-server.spec +++ b/xCAT-server/xCAT-server.spec @@ -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