fix for bug 3487614: xcataixpost: add timestamp when running postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6d0fd8bd7f
commit
c791b1d857
@ -302,10 +302,10 @@ run_ps () {
|
||||
logfile=\\"/var/log/xcat/xcat.log\\"
|
||||
|
||||
if [[ -f \\\$1 ]]; then
|
||||
echo \\"Running postscript: \\\$@\\" | tee -a \\\$logfile
|
||||
echo \\"\\\`date\\\` Running postscript: \\\$@\\" | tee -a \\\$logfile
|
||||
./\\\$@ 2>&1 | tee -a \\\$logfile
|
||||
else
|
||||
echo \\"Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
|
||||
echo \\"\\\`date\\\` Postscript \\\$1 does NOT exist.\\" | tee -a \\\$logfile
|
||||
fi
|
||||
}
|
||||
# subroutine end
|
||||
|
Loading…
Reference in New Issue
Block a user