From aad8d89bf859c299d93b6d138c1c5f1ed5f88337 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Sun, 31 Jul 2016 13:23:09 +0200 Subject: [PATCH] [AUTH-9228] Provide just an suggestion instead of warning --- include/tests_authentication | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/tests_authentication b/include/tests_authentication index 084f0eab..04182d8c 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -244,15 +244,16 @@ TESTED=0 case ${OS} in "Linux") - FIND=`/usr/sbin/pwck -q -r 2> /dev/null; echo $?` + FIND=$(/usr/sbin/pwck -q -r 2> /dev/null; echo $?) TESTED=1 ;; "Solaris") - FIND=`/usr/sbin/pwck 2> /dev/null; echo $?` + FIND=$(/usr/sbin/pwck 2> /dev/null; echo $?) TESTED=1 ;; *) LogText "Dev: found /usr/sbin/pwck, but unsure how to call it on this operating system" + ReportException "${TEST_NO}:1" "Found /usr/sbin/pwck, but unsure how to call it on this operating system" ;; esac # Only display if this test has been executed @@ -260,11 +261,10 @@ Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_OK}" --color GREEN LogText "Result: pwck check didn't find any problems" AddHP 2 2 - else - Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_WARNING}" --color RED + else + Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_SUGGESTION}" --color YELLOW LogText "Result: pwck found one or more errors/warnings in the password file." - ReportWarning ${TEST_NO} "M" "pwck found one or more errors/warnings in the password file" - ReportSuggestion ${TEST_NO} "Run pwck manually and correct found issues." + ReportSuggestion ${TEST_NO} "Run pwck manually and correct any errors in the password file" AddHP 0 2 fi fi