diff options
author | mboelen <michael@cisofy.com> | 2015-07-22 18:37:39 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-07-22 18:37:39 +0300 |
commit | db131518f0d72a52838165854fcc20ce0468c31f (patch) | |
tree | e12c1826f6225749228599e2996d3322cc84741c | |
parent | afd01ece5d89dd3a1d78e3884d42ad38e129622a (diff) |
Clean up code
-rw-r--r-- | include/parameters | 2 | ||||
-rw-r--r-- | include/profiles | 24 |
2 files changed, 4 insertions, 22 deletions
diff --git a/include/parameters b/include/parameters index 2cd372f8..aadc6700 100644 --- a/include/parameters +++ b/include/parameters @@ -263,4 +263,4 @@ done #================================================================================ -# Lynis - Copyright 2007-2015, Michael Boelen - www.rootkit.nl - The Netherlands +# Lynis - Copyright 2007-2015, Michael Boelen, CISOfy - https://cisofy.com 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}" ;; |