From dfacdf605e9439077b92e2a8827fce618240fd40 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Mon, 21 Jan 2002 04:11:27 +0000 Subject: mail even when the log is empty to signify that the check is fine. --- cron-sh/diff_check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index f93c754..21fd883 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -177,9 +177,14 @@ if [[ -s ${TMP} ]]; then echo -e "\n\n*** Diff Check, ${date} ***\n" >> ${SECURITY_LOG} cat ${TMP} >> ${SECURITY_LOG} - Maillog "*** Diff Check on ${hostname}, ${date} ***" "${TMP}" +else + cat > ${TMP} <