aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-01-28 15:01:14 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-01-28 15:01:14 +0000
commit59b2a57559596385343f3b9dae5557b46a514efc (patch)
tree4c7fc71ccb42fcf7f3dc80b439b07cc4f302943d
parente8347e84e1b7a49c5c950d6d16b9b27eb8af57f4 (diff)
downloadmsec-59b2a57559596385343f3b9dae5557b46a514efc.tar
msec-59b2a57559596385343f3b9dae5557b46a514efc.tar.gz
msec-59b2a57559596385343f3b9dae5557b46a514efc.tar.bz2
msec-59b2a57559596385343f3b9dae5557b46a514efc.tar.xz
msec-59b2a57559596385343f3b9dae5557b46a514efc.zip
- fix chkrootkit files not being rotated
-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