diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-08 14:08:13 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-02-08 14:08:13 +0000 |
commit | a671c7040bf97ab7e774968b071e420c9f35a289 (patch) | |
tree | 5dc0b694d52b2a2f93526031388b70a7c8c78bf5 | |
parent | 440f672184bf897b8acaf32011a76949b268b4eb (diff) | |
download | msec-a671c7040bf97ab7e774968b071e420c9f35a289.tar msec-a671c7040bf97ab7e774968b071e420c9f35a289.tar.gz msec-a671c7040bf97ab7e774968b071e420c9f35a289.tar.bz2 msec-a671c7040bf97ab7e774968b071e420c9f35a289.tar.xz msec-a671c7040bf97ab7e774968b071e420c9f35a289.zip |
Properly send results of sectool check.
-rwxr-xr-x | cron-sh/scripts/06_sectool.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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} |