mirror of https://github.com/CISOfy/lynis.git
Add show-report-solution setting
This commit is contained in:
parent
4eafdb6c85
commit
bcfdcc2b97
|
@ -186,6 +186,7 @@ unset LANG
|
|||
SHOWMOUNTBINARY=""
|
||||
SHOW_PROGRAM_DETAILS=1
|
||||
SHOW_REPORT=1
|
||||
SHOW_REPORT_SOLUTION=0
|
||||
SHOW_TOOL_TIPS=1 # Show inline tool tips (default true)
|
||||
SHOW_WARNINGS_ONLY=0
|
||||
SKIP_PLUGINS=0
|
||||
|
|
|
@ -22,7 +22,10 @@
|
|||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
||||
SETTING_SHOW_REPORT_SOLUTION=0 # default is no
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
for PROFILE in ${PROFILES}; do
|
||||
LogText "Reading profile/configuration ${PROFILE}"
|
||||
FIND=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | sed 's/ /!space!/g')
|
||||
|
@ -216,6 +219,13 @@
|
|||
AddSetting "refresh-repositories" "${SETTING_REFRESH_REPOSITORIES}" "Refresh repositories (for vulnerable package detection)"
|
||||
;;
|
||||
|
||||
# Show more details in report
|
||||
show-report-solution)
|
||||
FIND=$(echo "${VALUE}" | egrep "^(1|true|yes)$") && SHOW_REPORT_SOLUTION=1
|
||||
if [ ! -z "${FIND}" ]; then SETTING_SHOW_REPORT_SOLUTION=1; fi
|
||||
Debug "Show report details (solution) set to ${SETTING_SHOW_REPORT_SOLUTION}"
|
||||
;;
|
||||
|
||||
# Inline tips about tool (default enabled)
|
||||
show_tool_tips | show-tool-tips)
|
||||
SETTING_SHOW_TOOL_TIPS=1 # default is yes
|
||||
|
@ -428,7 +438,11 @@
|
|||
#
|
||||
#################################################################################
|
||||
#
|
||||
|
||||
# Register the discovered settings
|
||||
AddSetting "show-report-solution" "${SETTING_SHOW_REPORT_SOLUTION}" "Show more details in report (solution)"
|
||||
#
|
||||
#################################################################################
|
||||
#
|
||||
Display --indent 2 --text "- Checking profiles..." --result "DONE" --color GREEN
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue