diff options
author | mboelen <michael@cisofy.com> | 2015-10-01 13:59:15 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-10-01 13:59:15 +0300 |
commit | 55ee1e90bc183312d2546cc5142d806737874dd3 (patch) | |
tree | 56aff3380c2aa487ee15bd17101ba8c27d5a5ea4 /include/profiles | |
parent | 3a4376baa5e246fa2663342a8dcdeb100211bff7 (diff) |
Check correct variable for enabled compliance standards
Diffstat (limited to 'include/profiles')
-rw-r--r-- | include/profiles | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/profiles b/include/profiles index 0179b031..1f128c24 100644 --- a/include/profiles +++ b/include/profiles @@ -32,12 +32,12 @@ # Define which compliance standards are enabled compliance_standards) COMPLIANCE_STANDARDS_ENABLED=`echo ${VALUE} | tr ',' ' '` - for I in ${COMPLIANCE_STANDARDS}; do + for I in ${COMPLIANCE_STANDARDS_ENABLED}; do case $I in - hipaa) COMPLIANCE_HIPAA=1 ;; - iso27001) COMPLIANCE_ISO27001=1 ;; - pci-dss) COMPLIANCE_PCI_DSS=1 ;; - *) logtext "Unknown compliance standard configured" ;; + hipaa) COMPLIANCE_HIPAA=1 ; Debug "Compliance scanning for HIPAA is enabled" ;; + iso27001) COMPLIANCE_ISO27001=1 ; Debug "Compliance scanning for ISO27001 is enabled" ;; + pci-dss) COMPLIANCE_PCI_DSS=1 ; Debug "Compliance scanning for PCI-DSS is enabled" ;; + *) logtext "Result: Unknown compliance standard configured" ;; esac done ;; |