aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-03-09 16:50:23 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-03-09 16:50:23 +0000
commit4d1272e7c6dc1aecc5d3d56a51064cb5ce90b9cb (patch)
tree95cc93e978e1f4b42d698002244a428a561fcf8e /cron-sh
parente3d59d9858611d98ba8d728517dfec0cf7af2030 (diff)
downloadmsec-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-xcron-sh/security.sh2
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}"