From 88c34c36f4370b8d863c44d1d5c4832bc96fb888 Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 25 Jan 2011 20:51:07 +0000 Subject: [PATCH] fix in configrmcnode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8737 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-rmc/scripts/configrmcnode | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xCAT-rmc/scripts/configrmcnode b/xCAT-rmc/scripts/configrmcnode index 611eb2efc..875a2e407 100755 --- a/xCAT-rmc/scripts/configrmcnode +++ b/xCAT-rmc/scripts/configrmcnode @@ -185,17 +185,20 @@ if [ $ADD -eq 1 ]; then fi mkdir -p /var/xcat/rmcmon - rm -f -R /var/xcat/rmcmon + rm -f -R /var/xcat/rmcmon/* if [[ $OSTYPE = linux* ]]; then mkdir -p /tmp/postage/rmcmon/scripts mkdir -p /tmp/postage/rmcmon/resources/$nodetype rm -f -R /tmp/postage/rmcmon/scripts/* - rm -f -R /tmp/postage/rmcmon/resources/$nodetype + rm -f -R /tmp/postage/rmcmon/resources/$nodetype/* cd /tmp/postage/rmcmon/scripts wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 ftp://$NFSSERVER/postscripts/rmcmon/scripts 2> /tmp/wget.log cd /tmp/postage/rmcmon/resources/$nodetype wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused -t 0 -T 60 ftp://$NFSSERVER/postscripts/rmcmon/resources/$nodetyp 2> /tmp/wget.log - mv $NFSSERVER/postscripts/rmcmon /var/xcat/rmcmon; + mv $NFSSERVER/postscripts/rmcmon/* /var/xcat/rmcmon; + rm -rf $NFSSERVER + cd /tmp/postage/rmcmon/scripts + mv $NFSSERVER/postscripts/rmcmon/* /var/xcat/rmcmon/; rm -rf $NFSSERVER else mkdir -p /xcatmnt