diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-05 12:54:42 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-09-05 12:54:42 +0300 |
commit | cbed07cdb22938f1eaa27bc3b81869728adfab94 (patch) | |
tree | e8030f0339f4354d079ef5911fe40cbfb707959d /include/tests_logging | |
parent | 04f9fae67cb7913d821f16daa792c92fae1ea35a (diff) |
[LOGG-2146] Changed text and style
Diffstat (limited to 'include/tests_logging')
-rw-r--r-- | include/tests_logging | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/tests_logging b/include/tests_logging index 3e15cd9c..894d8d24 100644 --- a/include/tests_logging +++ b/include/tests_logging @@ -229,24 +229,26 @@ LOGROTATE_CONFIG_FOUND=1 LOGROTATE_TOOL="logrotate" LogText "Result: /etc/logrotate.conf found (file)" - else + else LogText "Result: /etc/logrotate.conf NOT found" fi + LogText "Test: Checking for /etc/logrotate.d (directory)" if [ -d /etc/logrotate.d ]; then LOGROTATE_CONFIG_FOUND=1 LOGROTATE_TOOL="logrotate" LogText "Result: /etc/logrotate.d found" - else + else LogText "Result: /etc/logrotate.conf found" fi + if [ ${LOGROTATE_CONFIG_FOUND} -eq 1 ]; then Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_OK}" --color GREEN LogText "Result: logrotate configuration found" - else + else Display --indent 2 --text "- Checking logrotate presence" --result "${STATUS_WARNING}" --color RED 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 # |