From a671c7040bf97ab7e774968b071e420c9f35a289 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 8 Feb 2010 14:08:13 +0000 Subject: Properly send results of sectool check. --- cron-sh/scripts/06_sectool.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cron-sh') diff --git a/cron-sh/scripts/06_sectool.sh b/cron-sh/scripts/06_sectool.sh index 0617bd8..6888e17 100755 --- a/cron-sh/scripts/06_sectool.sh +++ b/cron-sh/scripts/06_sectool.sh @@ -28,6 +28,10 @@ if check_is_enabled "${CHECK_SECTOOL}" ; then fi sectool $sectool_params > ${SECTOOL_TODAY} Filter ${SECTOOL_TODAY} CHECK_SECTOOL + if [[ -s ${SECTOOL_TODAY} ]]; then + printf "\nSectool report:\n" >> ${SECURITY} + cat ${SECTOOL_TODAY} >> ${SECURITY} + fi Diffcheck ${SECTOOL_TODAY} ${SECTOOL_YESTERDAY} ${SECTOOL_DIFF} "sectool results" else printf "\nSectool check skipped: sectool not found" >> ${SECURITY} -- cgit v1.2.1