Don't reset status of malware scanner, as there might be two available. Small change to format

This commit is contained in:
Michael Boelen 2024-05-14 06:50:26 +00:00
parent f22bfb5c6a
commit b8064bc5de
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04

View File

@ -46,18 +46,19 @@
TRENDMICRO_DSA_DAEMON_RUNNING=0 TRENDMICRO_DSA_DAEMON_RUNNING=0
# #
################################################################################# #################################################################################
# Test : MALW-3274 #
# Description : Check for installed tool (McAfee VirusScan for Command Line) # Test : MALW-3274
Register --test-no MALW-3274 --weight L --network NO --category security --description "Check for McAfee VirusScan Command Line" # Description : Check for installed tool (McAfee VirusScan for Command Line)
if [ ${SKIPTEST} -eq 0 ]; then Register --test-no MALW-3274 --weight L --network NO --category security --description "Check for McAfee VirusScan Command Line"
LogText "Test: checking presence McAfee VirusScan for Command Line" if [ ${SKIPTEST} -eq 0 ]; then
if [ -x /usr/local/uvscan/uvscan ]; then LogText "Test: checking presence McAfee VirusScan for Command Line"
Display --indent 2 --text "- ${GEN_CHECKING} McAfee VirusScan for Command Line" --result "${STATUS_FOUND}" --color RED if [ -x /usr/local/uvscan/uvscan ]; then
LogText "Result: Found ${MCAFEECLBINARY}" Display --indent 2 --text "- ${GEN_CHECKING} McAfee VirusScan for Command Line (deprecated)" --result "${STATUS_FOUND}" --color RED
MALWARE_SCANNER_INSTALLED=0 LogText "Result: Found ${MCAFEECLBINARY}"
AddHP 0 2 AddHP 0 2
LogText "Result: McAfee Antivirus for Linux has been deprecated as of 1 Oct 2023 and will not receive updates. Please use another antivirus instead." LogText "Result: McAfee Antivirus for Linux has been deprecated as of 1 Oct 2023 and will not receive updates. Please use another antivirus instead."
fi fi
fi
################################################################################# #################################################################################
# #
# Test : MALW-3275 # Test : MALW-3275