fix for bug 2918528: remove postbootscripts from mypostscript when postscript name is specified with updatenode command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
9ef0c89687
commit
6ea2ab172a
@ -207,8 +207,12 @@ if [ $argnum -gt 0 ]; then
|
||||
echo "$TMP" > /tmp/mypostscript;
|
||||
fi
|
||||
|
||||
# postscript name is specified with the updatenode
|
||||
if [ $argnum -gt 2 ]; then
|
||||
POSTS=$3
|
||||
#remove all the postbootscripts
|
||||
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ d" /tmp/mypostscript`
|
||||
echo "$TMP" > /tmp/mypostscript
|
||||
#remove all the postscripts
|
||||
TMP=`sed "/postscripts-start-here/,/postscripts-end-here/ d" /tmp/mypostscript`
|
||||
echo "$TMP" > /tmp/mypostscript
|
||||
|
Loading…
Reference in New Issue
Block a user