aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:04:51 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:04:51 +0000
commit45eefb67498d6708bc591da167414f05bb1a1fe5 (patch)
tree871b9351246c75f223f367687dd771dc63bf45e3 /cron-sh
parent04264a85de43e5cc0ef5f4c7113e0979bc397a53 (diff)
downloadmsec-45eefb67498d6708bc591da167414f05bb1a1fe5.tar
msec-45eefb67498d6708bc591da167414f05bb1a1fe5.tar.gz
msec-45eefb67498d6708bc591da167414f05bb1a1fe5.tar.bz2
msec-45eefb67498d6708bc591da167414f05bb1a1fe5.tar.xz
msec-45eefb67498d6708bc591da167414f05bb1a1fe5.zip
Saving time elapsed in security test
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index e810603..df3e9f5 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -77,8 +77,12 @@ if [[ -s ${SECURITY} ]]; then
Syslog ${SECURITY}
Ttylog ${SECURITY}
+ TEST_ENDED=`date "+%b %d %H:%M:%S"`
+
echo "*** Security Check, ${REPORT_DATE} ***" > ${MSEC_TMP}
printf "Report summary:\n" >> ${MSEC_TMP}
+ echo "Test started: $REPORT_DATE" >> ${MSEC_TMP}
+ echo "Test finished: $TEST_ENDED" >> ${MSEC_TMP}
cat ${INFOS} >> ${MSEC_TMP}
printf "\nDetailed report:\n" >> ${MSEC_TMP}
cat ${SECURITY} >> ${MSEC_TMP}