mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-01 18:35:36 +00:00
Remove trailing spaces in file xCAT-server/share/xcat/install/scripts/post.rhel5.s390x
This commit is contained in:
@ -29,19 +29,19 @@ do
|
||||
if [ ! -x /usr/bin/openssl ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
USEOPENSSLFORXCAT=1
|
||||
export USEOPENSSLFORXCAT
|
||||
|
||||
|
||||
# Get xcat server
|
||||
XCATSERVER=$i:3001
|
||||
export XCATSERVER
|
||||
|
||||
|
||||
# Move postscripts into /xcatpost
|
||||
mv $i/postscripts /xcatpost
|
||||
# Remove postscritps
|
||||
rm -rf $i
|
||||
|
||||
|
||||
# Make postscripts executable
|
||||
chmod +x /xcatpost/*
|
||||
|
||||
@ -60,7 +60,7 @@ do
|
||||
# Sleep a couple of seconds before trying again
|
||||
let SLI=$RANDOM%10+10
|
||||
sleep $SLI
|
||||
|
||||
|
||||
# Get postscript to run on this node from xcat server
|
||||
/xcatpost/getpostscript.awk |egrep '<data>'|sed -e 's/<[^>]*>//g'|egrep -v '^ *$'|sed -e 's/^ *//' > /xcatpost/mypostscript
|
||||
MYCONT=`grep MASTER /xcatpost/mypostscript`
|
||||
@ -72,7 +72,7 @@ do
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
# If postscripts for this node are found
|
||||
if [ "$GOTIT" = "1" ]; then
|
||||
# Save the master/service node to /opt/xcat/xcatinfo file
|
||||
@ -81,7 +81,7 @@ do
|
||||
touch /opt/xcat/xcatinfo
|
||||
fi
|
||||
echo "XCATSERVER=$i" > /opt/xcat/xcatinfo
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
echo "REBOOT=TRUE" >> /opt/xcat/xcatinfo
|
||||
break
|
||||
fi
|
||||
RAND=$(perl -e 'print int(rand(5)). "\n"')
|
||||
@ -99,8 +99,8 @@ run_ps () {
|
||||
logdir=\"/var/log/xcat\"
|
||||
mkdir -p \$logdir
|
||||
logfile=\"/var/log/xcat/xcat.log\"
|
||||
|
||||
if [ -f \$1 ]; then
|
||||
|
||||
if [ -f \$1 ]; then
|
||||
echo \"Running postscript: \$@\" | tee -a \$logfile
|
||||
./\$@ 2>&1 | tee -a $logfile
|
||||
else
|
||||
@ -112,7 +112,7 @@ run_ps () {
|
||||
" > /xcatpost/mypostscript
|
||||
echo "$TMP" >> /xcatpost/mypostscript
|
||||
TMP=`sed "/postbootscripts-start-here/,/postbootscripts-end-here/ s/\(.*\)/run_ps \1/;s/run_ps\s*#/#/;s/run_ps\s*$//" /xcatpost/mypostscript`
|
||||
echo "$TMP" > /xcatpost/mypostscript
|
||||
echo "$TMP" > /xcatpost/mypostscript
|
||||
|
||||
|
||||
# Save post boot scripts to /xcatpost/mypostscript.post
|
||||
|
Reference in New Issue
Block a user