From 25ba97c9775e38df920257f3322c4cb08ccbf2d2 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 6 Oct 2009 16:50:40 +0000 Subject: [PATCH] -Fix more syntax errors in shell scripts related to NODESETSTATE git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/Postage.pm | 2 +- xCAT/postscripts/syncfiles | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 94feea492..cc025b6a2 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -228,7 +228,7 @@ sub makescript { } if (!$nodesetstate) { $nodesetstate=getnodesetstate($node);} - push @scriptd, "NODESETSTATE=".$nodesetstate."\n"; + push @scriptd, "NODESETSTATE=\"".$nodesetstate."\"\n"; push @scriptd, "export NODESETSTATE\n"; # set the UPDATENODE flag in the script, the default it 0, that means not in the updatenode process, xcatdsklspost and xcataixpost will set it to 1 in updatenode case diff --git a/xCAT/postscripts/syncfiles b/xCAT/postscripts/syncfiles index 1dd6283b3..cd9cb7668 100644 --- a/xCAT/postscripts/syncfiles +++ b/xCAT/postscripts/syncfiles @@ -18,9 +18,9 @@ if [[ $NOSYNCFILES -eq 1 ]]; then fi # do nothing for diskless deployment case because it is done in the image already -if [ $NODESETSTATE = "netboot" -o \ - $NODESETSTATE = "diskless" -o \ - $NODESETSTATE = "dataless" ] +if [ "$NODESETSTATE" = "netboot" -o \ + "$NODESETSTATE" = "diskless" -o \ + "$NODESETSTATE" = "dataless" ] then exit 0 fi