mirror of https://github.com/CISOfy/lynis.git
Check correct variable for enabled compliance standards
This commit is contained in:
parent
3a4376baa5
commit
55ee1e90bc
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue