aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/scripts
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.org>2010-01-28 03:45:12 +0000
committerMichael Scherer <misc@mandriva.org>2010-01-28 03:45:12 +0000
commit403673fa8bf210647bc7efe5d9a4f0f1182b3d1f (patch)
tree00fc4f5eb9fe8b56806e749bc6f58180bd242a6a /cron-sh/scripts
parentfc565e11be7e0cf74e8f03439e21cf48d64ac1a9 (diff)
downloadmsec-403673fa8bf210647bc7efe5d9a4f0f1182b3d1f.tar
msec-403673fa8bf210647bc7efe5d9a4f0f1182b3d1f.tar.gz
msec-403673fa8bf210647bc7efe5d9a4f0f1182b3d1f.tar.bz2
msec-403673fa8bf210647bc7efe5d9a4f0f1182b3d1f.tar.xz
msec-403673fa8bf210647bc7efe5d9a4f0f1182b3d1f.zip
- fix chkrootkit files not being rotated
Diffstat (limited to 'cron-sh/scripts')
-rwxr-xr-xcron-sh/scripts/04_rootkit.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/cron-sh/scripts/04_rootkit.sh b/cron-sh/scripts/04_rootkit.sh
index 3a59b0c..c1c8503 100755
--- a/cron-sh/scripts/04_rootkit.sh
+++ b/cron-sh/scripts/04_rootkit.sh
@@ -13,6 +13,10 @@ export CHKROOTKIT_TODAY="/var/log/security/chkrootkit.today"
CHKROOTKIT_YESTERDAY="/var/log/security/chkrootkit.yesterday"
CHKROOTKIT_DIFF="/var/log/security/chkrootkit.diff"
+if [[ -f ${CHKROOTKIT_TODAY} ]]; then
+ mv ${CHKROOTKIT_TODAY} ${CHKROOTKIT_YESTERDAY};
+fi
+
### chkrootkit checks
if [[ ${CHECK_CHKROOTKIT} == yes ]]; then
if [ -x /usr/sbin/chkrootkit ]; then