From 0c9f723786617d10a9f3fafc4739cf530b28a891 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 4 May 2012 14:27:19 +0000 Subject: [PATCH] Correct loop variable names in various post scripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12526 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.debian | 2 +- xCAT-server/share/xcat/install/scripts/post.rhel5.s390x | 4 ++-- xCAT-server/share/xcat/install/scripts/post.rhel6.s390x | 4 ++-- xCAT-server/share/xcat/install/scripts/post.sles10.s390x | 2 +- xCAT-server/share/xcat/install/scripts/post.sles11.s390x | 2 +- xCAT-server/share/xcat/install/scripts/post.ubuntu | 2 +- xCAT-server/share/xcat/install/scripts/post.xcat | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.debian b/xCAT-server/share/xcat/install/scripts/post.debian index d322cf3ae..d035b9086 100644 --- a/xCAT-server/share/xcat/install/scripts/post.debian +++ b/xCAT-server/share/xcat/install/scripts/post.debian @@ -36,7 +36,7 @@ export MASTER="#XCATVAR:XCATMASTER#" cd /tmp RAND=$(perl -e 'print int(rand(50)). "\n"') sleep $RAND -for i in $(seq 1 20) +for t in $(seq 1 20) do GOTIT=0 for i in $MASTER_IPS diff --git a/xCAT-server/share/xcat/install/scripts/post.rhel5.s390x b/xCAT-server/share/xcat/install/scripts/post.rhel5.s390x index 58f7c9a0c..da1d2e757 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhel5.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.rhel5.s390x @@ -13,7 +13,7 @@ RAND=$(perl -e 'print int(rand(50)). "\n"') sleep $RAND # Loop through the master/service nodes -for i in $(seq 1 20) +for t in $(seq 1 20) do GOTIT=0 for i in $MASTER_IPS @@ -141,4 +141,4 @@ echo "$TMP" > /tmp/mypostscript /tmp/mypostscript # Master/service node variable set by nodeset -updateflag.awk replace_master 3002 \ No newline at end of file +updateflag.awk replace_master 3002 diff --git a/xCAT-server/share/xcat/install/scripts/post.rhel6.s390x b/xCAT-server/share/xcat/install/scripts/post.rhel6.s390x index 4314c361a..381308915 100644 --- a/xCAT-server/share/xcat/install/scripts/post.rhel6.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.rhel6.s390x @@ -13,7 +13,7 @@ RAND=$(perl -e 'print int(rand(50)). "\n"') sleep $RAND # Loop through the master/service nodes -for i in $(seq 1 20) +for j in $(seq 1 20) do GOTIT=0 for i in $MASTER_IPS @@ -144,4 +144,4 @@ echo "$TMP" > /tmp/mypostscript updateflag.awk replace_master 3002 # Restore default SELinux security context -restorecon -R -v /root/.ssh \ No newline at end of file +restorecon -R -v /root/.ssh diff --git a/xCAT-server/share/xcat/install/scripts/post.sles10.s390x b/xCAT-server/share/xcat/install/scripts/post.sles10.s390x index b922bf6e9..f9f19baee 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles10.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.sles10.s390x @@ -23,7 +23,7 @@ HOSTNAME=$(hostname -s) # These variables are set by nodeset export MASTER_IPS=( replace_master ) -for i in $(seq 1 20) +for t in $(seq 1 20) do GOTIT=0 diff --git a/xCAT-server/share/xcat/install/scripts/post.sles11.s390x b/xCAT-server/share/xcat/install/scripts/post.sles11.s390x index 8e362c8b6..f96a347e7 100644 --- a/xCAT-server/share/xcat/install/scripts/post.sles11.s390x +++ b/xCAT-server/share/xcat/install/scripts/post.sles11.s390x @@ -19,7 +19,7 @@ HOSTNAME=$(hostname -s) # These variables are set by nodeset export MASTER_IPS=( replace_master ) -for i in $(seq 1 20) +for t in $(seq 1 20) do GOTIT=0 diff --git a/xCAT-server/share/xcat/install/scripts/post.ubuntu b/xCAT-server/share/xcat/install/scripts/post.ubuntu index d50c814e1..e3b3ed61a 100644 --- a/xCAT-server/share/xcat/install/scripts/post.ubuntu +++ b/xCAT-server/share/xcat/install/scripts/post.ubuntu @@ -34,7 +34,7 @@ export MASTER="#XCATVAR:XCATMASTER#" cd /tmp RAND=$(perl -e 'print int(rand(50)). "\n"') sleep $RAND -for i in $(seq 1 20) +for j in $(seq 1 20) do GOTIT=0 for i in $MASTER_IPS diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index dfc8d8257..55d3c736a 100644 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -11,7 +11,7 @@ fi cd /tmp RAND=$(perl -e 'print int(rand(50)). "\n"') sleep $RAND -for i in $(seq 1 20) +for t in $(seq 1 20) do GOTIT=0 for i in $MASTER_IPS