From 645111253f073b5ef5a0424d8532ad1d7fddcce0 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Thu, 28 Jan 2010 15:09:30 +0000 Subject: Properly handle cases when chkrootkit is not installed or was uninstalled (#51309). --- cron-sh/security.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cron-sh/security.sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 17ebb4a..a888af2 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -192,6 +192,8 @@ if [[ ${CHECK_CHKROOTKIT} == yes ]]; then if [ -x /usr/sbin/chkrootkit ]; then # do not check on NFS /usr/sbin/chkrootkit -n ${CHKROOTKIT_OPTION} > ${CHKROOTKIT_TODAY} + else + echo "Security Warning: chkrootkit check is enabled but chkrootkit is not installed." > ${CHKROOTKIT_TODAY} fi fi -- cgit v1.2.1