Append rather than prepend xcatpost to PATH
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15378 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -99,7 +99,7 @@ cd /xcatpost | ||||
| #gunzip xcatpost.tar.gz | ||||
| #tar -xvf xcatpost.tar | ||||
| #/xcatpost/#TABLE:nodelist:THISNODE:node# | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
|  | ||||
| #save the postboot scripts to /var/tmp/mypostscript.post | ||||
| # | ||||
|   | ||||
| @@ -40,7 +40,7 @@ ifconfig | ||||
| cat /etc/resolv.conf | ||||
| mount $MASTER_IP:/install/postscripts /xcatpost | ||||
| cd /xcatpost | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
| export NODE=#TABLE:nodelist:THISNODE:node# | ||||
| export OSVER=#TABLE:nodetype:THISNODE:os# | ||||
| export ARCH=#TABLE:nodetype:THISNODE:arch# | ||||
|   | ||||
| @@ -90,7 +90,7 @@ do | ||||
| done | ||||
|  | ||||
| cd /xcatpost | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
|  | ||||
| # Use the run_ps subroutine to run the postscripts | ||||
| TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /xcatpost/mypostscript` | ||||
|   | ||||
| @@ -89,7 +89,7 @@ do | ||||
| done | ||||
|  | ||||
| cd /xcatpost | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
|  | ||||
| # Use the run_ps subroutine to run the postscripts | ||||
| TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /xcatpost/mypostscript` | ||||
|   | ||||
| @@ -96,7 +96,7 @@ do | ||||
|     sleep $RAND | ||||
| done | ||||
|  | ||||
| PATH=/xcatpost:$PATH | ||||
| PATH=$PATH:/xcatpost | ||||
| export PATH | ||||
|  | ||||
| # use the run_ps subroutine to run the postscripts | ||||
|   | ||||
| @@ -97,7 +97,7 @@ do | ||||
|     sleep $RAND | ||||
| done | ||||
|  | ||||
| PATH=/xcatpost:$PATH | ||||
| PATH=$PATH:/xcatpost | ||||
| export PATH | ||||
|  | ||||
| # use the run_ps subroutine to run the postscripts | ||||
|   | ||||
| @@ -99,7 +99,7 @@ cd /xcatpost | ||||
| #gunzip xcatpost.tar.gz | ||||
| #tar -xvf xcatpost.tar | ||||
| #/xcatpost/#TABLE:nodelist:THISNODE:node# | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
|  | ||||
| #save the postboot scripts to /var/tmp/mypostscript.post | ||||
| # | ||||
|   | ||||
| @@ -103,7 +103,7 @@ cd /xcatpost | ||||
| #gunzip xcatpost.tar.gz | ||||
| #tar -xvf xcatpost.tar | ||||
| #/xcatpost/#TABLE:nodelist:THISNODE:node# | ||||
| export PATH=/xcatpost:$PATH | ||||
| export PATH=$PATH:/xcatpost | ||||
|  | ||||
| # use the run_ps subroutine to run the postscripts | ||||
| TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /xcatpost/mypostscript` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user