mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-28 16:24:13 +02:00
Allow parsing of multiple profiles
This commit is contained in:
parent
810c37287f
commit
066f562365
@ -22,7 +22,9 @@
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
Display --indent 2 --text "- Checking profile file (${PROFILE})..."
|
||||
Display --indent 2 --text "- Checking profiles..."
|
||||
|
||||
for PROFILE in ${PROFILES}; do
|
||||
logtext "Reading profile/configuration ${PROFILE}"
|
||||
FIND=`grep '^config:' ${PROFILE} | sed 's/ /!space!/g'`
|
||||
for I in ${FIND}; do
|
||||
@ -91,6 +93,7 @@
|
||||
DEBUG=1
|
||||
fi
|
||||
;;
|
||||
|
||||
# Skip FreeBSD port audit
|
||||
freebsd_skip_portaudit)
|
||||
logtext "Option set: Skip FreeBSD portaudit"
|
||||
@ -224,6 +227,7 @@
|
||||
esac
|
||||
|
||||
done
|
||||
done
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user