mirror of https://github.com/CISOfy/lynis.git
Improved warning message with 'how to resolve'
This commit is contained in:
parent
3c8e3b0adb
commit
f644927a42
|
@ -39,10 +39,19 @@
|
|||
if ! IsEmpty "${DATA}"; then FOUND=1; fi
|
||||
|
||||
if [ ${FOUND} -eq 1 ]; then
|
||||
Display --text " "
|
||||
Display --text "=================================================================================================="
|
||||
DisplayWarning "Your profile contains old-style configuration entries. See log file for more details and how to convert these entries"
|
||||
LogText "Your profile has one or more configuration items that are in an old format (lines starting with key:value). They need to be converted into the new format (key=value)."
|
||||
LogText "Tip: Use grep to see the relevant matches (grep -E \"^[a-z-]{1,}:\" custom.prf)"
|
||||
sleep 30
|
||||
Display --indent 2 --text "* ${RED}ISSUE${NORMAL}"
|
||||
Display --indent 2 --text "Your profile has one or more lines that are in an old format (key:value). They need to be converted into the new format (key=value) or disabled."
|
||||
Display --text " "
|
||||
Display --indent 2 --text "* ${GREEN}HOW TO RESOLVE${NORMAL}"
|
||||
Display --indent 2 --text "Use grep to see the relevant matches (grep -E \"^[a-z-]{1,}:\" custom.prf)"
|
||||
Display --text " "
|
||||
Display --text "=================================================================================================="
|
||||
Display --text " "
|
||||
ReportWarning "GEN-0020" "Your profile contains one or more old-style configuration entries"
|
||||
sleep 10
|
||||
fi
|
||||
|
||||
# Security check for unexpected and possibly harmful escape characters (hyphen should be listed as first or last character)
|
||||
|
|
Loading…
Reference in New Issue