aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/diff_check.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-01-28 14:52:26 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-01-28 14:52:26 +0000
commit16b06e2c36fca01e8a9332fbd2c2063399a8952c (patch)
treec7d405767ca1e33ff7f07b58c69745aa7cc69b8d /cron-sh/diff_check.sh
parent096e332c628da5d012fbdd752b3234257c774e7d (diff)
downloadmsec-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-xcron-sh/diff_check.sh5
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}