diff options
author | mboelen <michael@cisofy.com> | 2015-10-01 23:40:49 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-10-01 23:40:49 +0300 |
commit | 009a363550987fba95d503bdcc2c7b62015b09b0 (patch) | |
tree | e8828ee0eecd405d5e9ab66c5c383bf16553e118 /include/report | |
parent | ac87ce4c79836b07b490421d14fb4d823a8dec60 (diff) |
Properly show compliance status now
Diffstat (limited to 'include/report')
-rw-r--r-- | include/report | 10 |
1 files 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 "================================================================================" |