diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-01-28 14:52:26 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-01-28 14:52:26 +0000 |
commit | 16b06e2c36fca01e8a9332fbd2c2063399a8952c (patch) | |
tree | c7d405767ca1e33ff7f07b58c69745aa7cc69b8d /cron-sh/diff_check.sh | |
parent | 096e332c628da5d012fbdd752b3234257c774e7d (diff) | |
download | msec-16b06e2c36fca01e8a9332fbd2c2063399a8952c.tar msec-16b06e2c36fca01e8a9332fbd2c2063399a8952c.tar.gz msec-16b06e2c36fca01e8a9332fbd2c2063399a8952c.tar.bz2 msec-16b06e2c36fca01e8a9332fbd2c2063399a8952c.tar.xz msec-16b06e2c36fca01e8a9332fbd2c2063399a8952c.zip |
report too the date and the hostname when the report is empty.
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 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} |