mirror of https://github.com/CISOfy/lynis.git
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}"
|
logtext "Reading profile/configuration ${PROFILE}"
|
||||||
FIND=`grep '^config:' ${PROFILE} | sed 's/ /!space!/g'`
|
FIND=`grep '^config:' ${PROFILE} | sed 's/ /!space!/g'`
|
||||||
for I in ${FIND}; do
|
for I in ${FIND}; do
|
||||||
|
@ -91,6 +93,7 @@
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Skip FreeBSD port audit
|
# Skip FreeBSD port audit
|
||||||
freebsd_skip_portaudit)
|
freebsd_skip_portaudit)
|
||||||
logtext "Option set: Skip FreeBSD portaudit"
|
logtext "Option set: Skip FreeBSD portaudit"
|
||||||
|
@ -224,6 +227,7 @@
|
||||||
esac
|
esac
|
||||||
|
|
||||||
done
|
done
|
||||||
|
done
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue