From f9a2b632073414a891bdd1ba8aa06de35babcdf4 Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 8 Nov 2011 19:20:47 +0000 Subject: [PATCH] bug fix for configrmcnode postscript git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/scripts/configrmcnode | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-rmc/scripts/configrmcnode b/xCAT-rmc/scripts/configrmcnode index 20ad92476..b1eb67795 100755 --- a/xCAT-rmc/scripts/configrmcnode +++ b/xCAT-rmc/scripts/configrmcnode @@ -219,8 +219,10 @@ if [ $ADD -eq 1 ]; then umount /xcatmnt rmdir /xcatmnt fi - chmod 755 /var/xcat/rmcmon/scripts/* - /var/xcat/rmcmon/scripts/mkrmcresources /var/xcat/rmcmon/resources/$nodetype + chmod 755 /var/xcat/rmcmon/scripts/* + if [ -d /var/xcat/rmcmon/resources/$nodetype ]; then + /var/xcat/rmcmon/scripts/mkrmcresources /var/xcat/rmcmon/resources/$nodetype + fi else #check if the resource is defined result=`/usr/bin/lsrsrc-api -s IBM.MCP::"NodeID=0x$MS_NODEID"::MNName 2>&1`