aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-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}