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
|
# Define which compliance standards are enabled
|
||||||
compliance_standards)
|
compliance_standards)
|
||||||
COMPLIANCE_STANDARDS_ENABLED=`echo ${VALUE} | tr ',' ' '`
|
COMPLIANCE_STANDARDS_ENABLED=`echo ${VALUE} | tr ',' ' '`
|
||||||
for I in ${COMPLIANCE_STANDARDS}; do
|
for I in ${COMPLIANCE_STANDARDS_ENABLED}; do
|
||||||
case $I in
|
case $I in
|
||||||
hipaa) COMPLIANCE_HIPAA=1 ;;
|
hipaa) COMPLIANCE_HIPAA=1 ; Debug "Compliance scanning for HIPAA is enabled" ;;
|
||||||
iso27001) COMPLIANCE_ISO27001=1 ;;
|
iso27001) COMPLIANCE_ISO27001=1 ; Debug "Compliance scanning for ISO27001 is enabled" ;;
|
||||||
pci-dss) COMPLIANCE_PCI_DSS=1 ;;
|
pci-dss) COMPLIANCE_PCI_DSS=1 ; Debug "Compliance scanning for PCI-DSS is enabled" ;;
|
||||||
*) logtext "Unknown compliance standard configured" ;;
|
*) logtext "Result: Unknown compliance standard configured" ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue