diff options
Diffstat (limited to 'include/profiles')
-rw-r--r-- | include/profiles | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/include/profiles b/include/profiles index 93176716..1ceb4cd8 100644 --- a/include/profiles +++ b/include/profiles @@ -5,8 +5,8 @@ # Lynis # ------------------ # -# Copyright 2007-2015, Michael Boelen (michael@rootkit.nl), The Netherlands -# Web site: http://www.rootkit.nl +# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) +# Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # welcome to redistribute it under the terms of the GNU General Public License. @@ -18,29 +18,12 @@ # ################################################################################# # - #YYY Enable check when profile files are complete and completely documented - # Check if default profile is used - if [ "${PROFILE}" = "defaultXXX.prf" ]; then - echo "" - echo " ===============================================================================" - echo " ${WARNING}Warning${NORMAL}: ${WHITE}Default profile is used.${NORMAL}" - echo " Default profile contains only a small amount of options and settings." - echo " Consult the documentation to create a custom profile!" - echo "" - echo " [ ${WHITE}Press [ENTER] to continue with the default profile or [CTRL] + C to stop${NORMAL} ]" - echo " ===============================================================================" - wait_for_keypress - fi - -# -################################################################################# -# Display --indent 2 --text "- Checking profile file (${PROFILE})..." logtext "Reading profile/configuration ${PROFILE}" FIND=`cat ${PROFILE} | grep '^config:' | sed 's/ /!space!/g'` for I in ${FIND}; do OPTION=`echo ${I} | cut -d ':' -f2` - VALUE=`echo ${I} | cut -d ':' -f3 | sed 's/!space!/ /g'` + VALUE=`echo ${I} | cut -d ':' -f3 | sed 's/!space!/ /g'` logtext "Profile option set: ${OPTION} (with value ${VALUE})" @@ -120,7 +103,6 @@ # Profile name profile_name) - # YYY dummy PROFILE_NAME="${VALUE}" ;; |