mirror of https://github.com/CISOfy/lynis.git
[LOGG-2146] Changed text and style
This commit is contained in:
parent
04f9fae67c
commit
cbed07cdb2
|
@ -232,6 +232,7 @@
|
||||||
else
|
else
|
||||||
LogText "Result: /etc/logrotate.conf NOT found"
|
LogText "Result: /etc/logrotate.conf NOT found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LogText "Test: Checking for /etc/logrotate.d (directory)"
|
LogText "Test: Checking for /etc/logrotate.d (directory)"
|
||||||
if [ -d /etc/logrotate.d ]; then
|
if [ -d /etc/logrotate.d ]; then
|
||||||
LOGROTATE_CONFIG_FOUND=1
|
LOGROTATE_CONFIG_FOUND=1
|
||||||
|
@ -240,13 +241,14 @@
|
||||||
else
|
else
|
||||||
LogText "Result: /etc/logrotate.conf found"
|
LogText "Result: /etc/logrotate.conf found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${LOGROTATE_CONFIG_FOUND} -eq 1 ]; then
|
if [ ${LOGROTATE_CONFIG_FOUND} -eq 1 ]; then
|
||||||
Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_OK}" --color GREEN
|
Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_OK}" --color GREEN
|
||||||
LogText "Result: logrotate configuration found"
|
LogText "Result: logrotate configuration found"
|
||||||
else
|
else
|
||||||
Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_WARNING}" --color RED
|
Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_WARNING}" --color RED
|
||||||
LogText "Result: No logrotate configuration found"
|
LogText "Result: No logrotate configuration found"
|
||||||
ReportSuggestion ${TEST_NO} "Check if files are properly rotated by a some tool instead of logrotate"
|
ReportSuggestion ${TEST_NO} "Check if log files are properly rotated"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue