mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-24 15:05:36 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user