From 2d6e8d8a5d5f6d354c79650f0a1259c87176dd79 Mon Sep 17 00:00:00 2001 From: ligc Date: Sat, 31 Mar 2012 02:58:07 +0000 Subject: [PATCH] fix for bug 3487614: add timestamp when running postscripts git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/install/scripts/post.xcat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/install/scripts/post.xcat b/xCAT-server/share/xcat/install/scripts/post.xcat index c8ba9e337..e1b38e179 100644 --- a/xCAT-server/share/xcat/install/scripts/post.xcat +++ b/xCAT-server/share/xcat/install/scripts/post.xcat @@ -83,12 +83,12 @@ 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 1> /tmp/tmp4xcatlog #cat /tmp/tmp4xcatlog | 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