diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-24 13:34:07 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2009-03-24 13:34:07 +0000 |
commit | 8feea829a7d522228e2d5c5ebc3e42bb750d5c1d (patch) | |
tree | ac01c25339e7ade1e40ad2bc4ed70b0b4e69ed2f /cron-sh/diff_check.sh | |
parent | a8bfe3ecabf9bde20ecc446370e745e14effb3ef (diff) | |
download | msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.gz msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.bz2 msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.tar.xz msec-8feea829a7d522228e2d5c5ebc3e42bb750d5c1d.zip |
Sending correct notify messages.
Diffstat (limited to 'cron-sh/diff_check.sh')
-rwxr-xr-x | cron-sh/diff_check.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index 772edb3..5f020cc 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -209,11 +209,12 @@ if [[ -s ${TMP} ]]; then echo -e "\n\n*** Diff Check, ${date} ***\n" >> ${SECURITY_LOG} cat ${TMP} >> ${SECURITY_LOG} - Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}\nChanges in system security were detected and are available in ${SECURITY_LOG}." + Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}. Changes in system security were detected and are available in ${SECURITY_LOG}." +else + Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}. No changes were detected in system security." fi Maillog "[msec] *** Diff Check on ${hostname}, ${date} ***" "${TMP}" -Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}\nNo changes were detected in system security." if [[ -f ${TMP} ]]; then rm -f ${TMP} |