-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
This commit is contained in:
jbjohnso 2009-10-06 16:50:40 +00:00
parent 855c948bbd
commit 25ba97c977
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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