From 009a363550987fba95d503bdcc2c7b62015b09b0 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 1 Oct 2015 22:40:49 +0200 Subject: [PATCH] Properly show compliance status now --- include/report | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/include/report b/include/report index 0c914606..4f1ed09a 100644 --- a/include/report +++ b/include/report @@ -169,8 +169,11 @@ echo "" echo " ${SECTION}Lynis Modules${NORMAL}:" - if [ ${LYNIS_COMPLIANCE_TESTS} -eq 1 ]; then COMPLIANCE="${GREEN}V"; else COMPLIANCE="${YELLOW}NA"; fi - echo " - Compliance Tests [${COMPLIANCE}${NORMAL}]" + if [ ${COMPLIANCE_TESTS_PERFORMED} -eq 1 ]; then + if [ ${COMPLIANCE_FINDINGS_FOUND} -eq 0 ]; then COMPLIANCE="${GREEN}V"; else COMPLIANCE="${RED}X"; fi + else COMPLIANCE="${YELLOW}NA"; + fi + echo " - Compliance Status [${COMPLIANCE}${NORMAL}]" echo " - Security Audit [${GREEN}V${NORMAL}]" echo " - Vulnerability Scan [${GREEN}V${NORMAL}]" echo "" @@ -237,7 +240,8 @@ if [ ${QUIET} -eq 0 ]; then echo " ${PROGRAM_name} ${PROGRAM_version}" - echo " Auditing, hardening and compliance for BSD, Linux, Mac OS and Unix" + echo " Auditing, hardening and compliance for Linux, Mac OS and Unix systems" + echo "" echo " ${PROGRAM_copyright}" echo " ${WHITE}${PROGRAM_extrainfo}${NORMAL}" echo "================================================================================"