Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2020-03-25 12:11:25 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2020-03-25 12:11:25 +0300
commitf644927a4209cf2caf27c6a8152c9bf6c610676c (patch)
tree0e44228c4341d28d2a54a71a3ba9d5ad2e110a99 /include/profiles
parent3c8e3b0adb9bae3c3464d9e5f39bea7af6967ad7 (diff)
Improved warning message with 'how to resolve'
Diffstat (limited to 'include/profiles')
-rw-r--r--include/profiles15
1 files changed, 12 insertions, 3 deletions
diff --git a/include/profiles b/include/profiles
index 767f3b79..5b940150 100644
--- a/include/profiles
+++ b/include/profiles
@@ -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)