aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:11 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-09 00:03:11 +0000
commit1a1dd358ce967c606e35062264e2989cb615d1c6 (patch)
treefdccf8525959f8a85e98e17ef580cd335b91ff42 /cron-sh
parentd8c7abe367ab0ed3b698ca6d71ff17f1d102f083 (diff)
downloadmsec-1a1dd358ce967c606e35062264e2989cb615d1c6.tar
msec-1a1dd358ce967c606e35062264e2989cb615d1c6.tar.gz
msec-1a1dd358ce967c606e35062264e2989cb615d1c6.tar.bz2
msec-1a1dd358ce967c606e35062264e2989cb615d1c6.tar.xz
msec-1a1dd358ce967c606e35062264e2989cb615d1c6.zip
properly format security header.
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/security.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 09f9286..e810603 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -77,13 +77,15 @@ if [[ -s ${SECURITY} ]]; then
Syslog ${SECURITY}
Ttylog ${SECURITY}
- echo "$SECURITY_PREFIX *** Security Check, ${REPORT_DATE} ***" >> ${SECURITY_LOG}
- printf "Report summary:\n" >> ${SECURITY_LOG}
+ echo "*** Security Check, ${REPORT_DATE} ***" > ${MSEC_TMP}
+ printf "Report summary:\n" >> ${MSEC_TMP}
+ cat ${INFOS} >> ${MSEC_TMP}
+ printf "\nDetailed report:\n" >> ${MSEC_TMP}
+ cat ${SECURITY} >> ${MSEC_TMP}
+
cat ${INFOS} | sed -e "s/^/$INFO_PREFIX/g" >> ${SECURITY_LOG}
- printf "\nDetailed report:\n" >> ${SECURITY_LOG}
- cat ${SECURITY} | sed -e "s/^/$SECURITY_PREFIX/g" >> ${SECURITY_LOG}
- Maillog "[msec] *** Security Check on ${REPORT_HOSTNAME}, ${REPORT_DATE} ***" "${SECURITY} ${INFOS}"
+ Maillog "[msec] *** Security Check on ${REPORT_HOSTNAME}, ${REPORT_DATE} ***" "${MSEC_TMP}"
Notifylog "MSEC has performed Security Check on ${REPORT_HOSTNAME} on ${REPORT_DATE}"
fi