diff --git a/xCAT/postscripts/servicenode b/xCAT/postscripts/servicenode index c9dc39211..55c6a8204 100755 --- a/xCAT/postscripts/servicenode +++ b/xCAT/postscripts/servicenode @@ -28,9 +28,12 @@ my $msg = "Removing OpenIPMI-tools"; $msg = "Removing tftp"; `logger -t xcat $msg`; `rpm -e tftp-server`; -$msg = "Installing xCAT"; -`logger -t xcat $msg`; -`rpm -ivh /xcatpost/xcat/RPMS/*/*.rpm`; +if [[ $NODESETSTATE = INSTALL]] +then + $msg = "Installing xCAT"; + `logger -t xcat $msg`; + `rpm -ivh /xcatpost/xcat/RPMS/*/*.rpm`; +fi $msg = "copying certificates and restarting daemon"; `logger -t xcat $msg`; `/opt/xcat/sbin/copycerts`;