diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-03-09 16:50:23 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-03-09 16:50:23 +0000 |
commit | 4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb (patch) | |
tree | 95cc93e978e1f4b42d698002244a428a561fcf8e /cron-sh | |
parent | e3d59d9858611d98ba8d728517dfec0cf7af2030 (diff) | |
download | msec-4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb.tar msec-4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb.tar.gz msec-4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb.tar.bz2 msec-4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb.tar.xz msec-4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb.zip |
Do not report when no changes were detected by diff run
Diffstat (limited to 'cron-sh')
-rwxr-xr-x | cron-sh/security.sh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 54c1943..b6eb17f 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -132,8 +132,6 @@ if [[ -s ${DIFF} ]]; then cat ${DIFF} | sed -e "s/^/$DIFF_PREFIX/g" >> ${SECURITY_LOG} Notifylog "MSEC has performed Diff Check on ${REPORT_HOSTNAME} on ${REPORT_DATE}. Changes in system security were detected and are available in ${SECURITY_LOG}." -else - Notifylog "MSEC has performed Diff Check on ${REPORT_HOSTNAME} on ${REPORT_DATE}. No changes were detected in system security." fi Maillog "[msec] *** Diff Check on ${REPORT_HOSTNAME}, ${REPORT_DATE} ***" "${DIFF}" |