From caaa86243343eac53c48f5e2c121f343d85d2d22 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 20 Feb 2009 14:34:45 +0000 Subject: Fixes for CHECK_RPM and CHECK_CHKROOTKIT. --- cron-sh/diff_check.sh | 4 ++-- cron-sh/security.sh | 4 ++-- cron-sh/security_check.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'cron-sh') diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index ad155ff..d3a142c 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -141,7 +141,7 @@ if [[ ${CHECK_OPEN_PORT} == yes ]]; then fi ### rpm database -if [[ ${RPM_CHECK} == yes ]]; then +if [[ ${CHECK_RPM} == yes ]]; then if [[ -f ${RPM_QA_YESTERDAY} ]]; then diff -u ${RPM_QA_YESTERDAY} ${RPM_QA_TODAY} > ${RPM_QA_DIFF} if [ -s ${RPM_QA_DIFF} ]; then @@ -181,7 +181,7 @@ if [[ ${RPM_CHECK} == yes ]]; then fi ### Changed chkrootkit -if [[ ${CHKROOTKIT_CHECK} == yes ]]; then +if [[ ${CHECK_CHKROOTKIT} == yes ]]; then if [[ -f ${CHKROOTKIT_YESTERDAY} ]]; then diff -u ${CHKROOTKIT_YESTERDAY} ${CHKROOTKIT_TODAY} 1> ${CHKROOTKIT_DIFF} diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 982c4e3..f7dc729 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -173,7 +173,7 @@ fi ### rpm database check -if [[ ${RPM_CHECK} == yes ]]; then +if [[ ${CHECK_RPM} == yes ]]; then rpm -qa --qf "%{NAME}-%{VERSION}-%{RELEASE}\t%{INSTALLTIME}\n" | sort > ${RPM_QA_TODAY} rm -f ${RPM_VA_TODAY}.tmp @@ -184,7 +184,7 @@ if [[ ${RPM_CHECK} == yes ]]; then fi ### chkrootkit checks -if [[ ${CHKROOTKIT_CHECK} == yes ]]; then +if [[ ${CHECK_CHKROOTKIT} == yes ]]; then if [ -x /usr/sbin/chkrootkit ]; then /usr/sbin/chkrootkit ${CHKROOTKIT_OPTION} > ${CHKROOTKIT_TODAY} fi diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh index 89daea2..c7bb664 100755 --- a/cron-sh/security_check.sh +++ b/cron-sh/security_check.sh @@ -262,7 +262,7 @@ fi ### rpm database checks -if [[ ${RPM_CHECK} == yes ]]; then +if [[ ${CHECK_RPM} == yes ]]; then if [[ -s ${RPM_VA_TODAY} ]]; then printf "\nSecurity Warning: These files belonging to packages are modified on the system :\n" >> ${SECURITY} @@ -280,7 +280,7 @@ if [[ ${RPM_CHECK} == yes ]]; then fi ### chkrootkit checks -if [[ ${CHKROOTKIT_CHECK} == yes ]]; then +if [[ ${CHECK_CHKROOTKIT} == yes ]]; then if [[ -s ${CHKROOTKIT_TODAY} ]]; then printf "\nChkrootkit report:\n" >> ${SECURITY} -- cgit v1.2.1