From 00cc8e4f6768da85a6a41d33f52be1fdc4eac7e2 Mon Sep 17 00:00:00 2001 From: Samson-W Date: Tue, 23 Oct 2018 02:17:52 +0800 Subject: [PATCH] Modify virul scan server:clamav-daemon server audit methods. --- bin/hardening/6.17_ensure_virul_scan_server_is_enabled.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bin/hardening/6.17_ensure_virul_scan_server_is_enabled.sh b/bin/hardening/6.17_ensure_virul_scan_server_is_enabled.sh index 0630ad9..0cd85f7 100755 --- a/bin/hardening/6.17_ensure_virul_scan_server_is_enabled.sh +++ b/bin/hardening/6.17_ensure_virul_scan_server_is_enabled.sh @@ -12,13 +12,11 @@ set -e # One error, it's over set -u # One variable unset, it's over HARDENING_LEVEL=3 -VIRULSERVER='clamav-freshclam' - -PACKAGES='clamav' +VIRULSERVER='clamav-daemon' # This function will be called if the script status is on enabled / audit mode audit () { - if [ $(dpkg -l | grep $PACKAGES | wc -l) -ge 1 ]; then + if [ $(dpkg -l | grep $VIRULSERVER | wc -l) -ge 1 ]; then if [ $(systemctl | grep $VIRULSERVER | grep "active running" | wc -l) -ne 1 ]; then crit "$VIRULSERVER is not runing" FNRET=2 @@ -27,7 +25,7 @@ audit () { FNRET=0 fi else - crit "$PACKAGES is not installed" + crit "$VIRULSERVER is not installed" FNRET=1 fi }