[AUTH-9228] Provide just an suggestion instead of warning

This commit is contained in:
Michael Boelen 2016-07-31 13:23:09 +02:00
parent 9b00ea7d40
commit aad8d89bf8

View File

@ -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