diff options
Diffstat (limited to 'cron-sh/scripts/04_rootkit.sh')
-rwxr-xr-x | cron-sh/scripts/04_rootkit.sh | 4 |
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 |