From 1c32268e9b7fcc3a09c90acaac1a37041f2ac219 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 23 Oct 2012 19:18:52 +0000 Subject: [PATCH] check for MN git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/remoteshell | 2 +- xCAT/postscripts/setupntp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index ec08cce70..3625bb456 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -4,7 +4,7 @@ # # if on the Management Node, exit if [ -e /etc/xCATMN ]; then - logger -t xcat -p local4.info "Running on the Management Node , exiting " + logger -t xcat -p local4.info "remoteshell:Running on the Management Node , exiting " exit 0 fi # Linux or if AIX call aixremoteshell -d diff --git a/xCAT/postscripts/setupntp b/xCAT/postscripts/setupntp index 894e8192d..1b62f24c0 100755 --- a/xCAT/postscripts/setupntp +++ b/xCAT/postscripts/setupntp @@ -5,6 +5,11 @@ # setup NTP configuration on the compute nodes # #--------------------------------------------------------------------------- +# if on the Management Node, exit +if [ -e /etc/xCATMN ]; then + logger -t xcat -p local4.info "setupntp:Running on the Management Node , exiting " + exit 0 +fi master=$MASTER setup=0 sitemaster=$SITEMASTER