From 4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 9 Mar 2010 16:50:23 +0000 Subject: Do not report when no changes were detected by diff run --- cron-sh/security.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 'cron-sh') 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}" -- cgit v1.2.1