Check correct variable for enabled compliance standards

This commit is contained in:
mboelen 2015-10-01 12:59:15 +02:00
parent 3a4376baa5
commit 55ee1e90bc
1 changed files with 5 additions and 5 deletions

View File

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