From 16b06e2c36fca01e8a9332fbd2c2063399a8952c Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Mon, 28 Jan 2002 14:52:26 +0000 Subject: report too the date and the hostname when the report is empty. --- cron-sh/diff_check.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index 21fd883..c31add2 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -169,11 +169,12 @@ if [[ ${RPM_CHECK} == yes ]]; then fi ######## Report ###### +date=`date` +hostname=`hostname` + if [[ -s ${TMP} ]]; then Syslog ${TMP} Ttylog ${TMP} - date=`date` - hostname=`hostname` echo -e "\n\n*** Diff Check, ${date} ***\n" >> ${SECURITY_LOG} cat ${TMP} >> ${SECURITY_LOG} -- cgit v1.2.1