diff options
author | mboelen <michael@cisofy.com> | 2016-04-23 18:55:32 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-04-23 18:55:32 +0300 |
commit | 904da4d123d6ef74d19f5f1456d93bcccaa39763 (patch) | |
tree | ba5814b89e0f825242169a7c675423a0bab12e18 /lynis | |
parent | 7823cf60f5bbc8d2fb0cf897e67e8dbdc98d2b19 (diff) |
Allow additional profile with --profile
Diffstat (limited to 'lynis')
-rwxr-xr-x | lynis | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -259,11 +259,17 @@ ${NORMAL} for PLOC in ${tPROFILE_TARGETS}; do FILE="${PLOC}/${PNAME}" if [ -r ${FILE} ]; then - PROFILE=${FILE} - PROFILES="${PROFILES} ${PROFILE}" + PROFILES="${PROFILES} ${FILE}" fi done done + # Search any profiles defined with --profile + for FILE in ${SEARCH_PROFILES}; do + if [ -r ${FILE} ]; then + Debug "Found profile defined with --profile" + PROFILES="${PROFILES} ${FILE}" + fi + done fi if [ "${PROFILES}" = "" ]; then echo "${RED}Fatal error: ${WHITE}No profile defined and could not find default profile${NORMAL}" |