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 ;;