From 1d8f69b4465e1274705ed098a645efa5f5b20f83 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 28 Feb 2008 15:04:19 +0000 Subject: [PATCH] Add install of xCAT git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/servicenode | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/xCAT/postscripts/servicenode b/xCAT/postscripts/servicenode index 16cf4042a..10e63a763 100755 --- a/xCAT/postscripts/servicenode +++ b/xCAT/postscripts/servicenode @@ -5,7 +5,6 @@ # - #----------------------------------------------------------------------------- =head1 servicenode @@ -17,15 +16,24 @@ #----------------------------------------------------------------------------- -# if this is a service node # -# Copy Certificates, and config file to apprpriate directories from mounted +# remove OpenIPMI-tools and tftp +# install xcat from /install/xcat +# Copy Certificates, and config file to apprpriate directories from /install +# and restart postgresql and xcatd # -if (-e "/etc/xCATSN") -{ - `/opt/xcat/sbin/copycerts`; -} +my $msg = "Removing OpenIPMI-tools"; +`logger -t xcat $msg`; +`rpm -e OpenIPMI-tools`; +$msg = "Removing tftp"; +`logger -t xcat $msg`; +`rpm -e tftp`; +$msg = "Installing xCAT"; +`logger -t xcat $msg`; +`rpm -ivh /xcatpost/xcat/RPMS/*/*.rpm`; +$msg = "copying certificates and restarting daemon"; +`logger -t xcat $msg`; +`/opt/xcat/sbin/copycerts`; exit 0; -