[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 TESTED=0
case ${OS} in case ${OS} in
"Linux") "Linux")
FIND=`/usr/sbin/pwck -q -r 2> /dev/null; echo $?` FIND=$(/usr/sbin/pwck -q -r 2> /dev/null; echo $?)
TESTED=1 TESTED=1
;; ;;
"Solaris") "Solaris")
FIND=`/usr/sbin/pwck 2> /dev/null; echo $?` FIND=$(/usr/sbin/pwck 2> /dev/null; echo $?)
TESTED=1 TESTED=1
;; ;;
*) *)
LogText "Dev: found /usr/sbin/pwck, but unsure how to call it on this operating system" 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 esac
# Only display if this test has been executed # 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 Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_OK}" --color GREEN
LogText "Result: pwck check didn't find any problems" LogText "Result: pwck check didn't find any problems"
AddHP 2 2 AddHP 2 2
else else
Display --indent 2 --text "- Checking password file consistency" --result "${STATUS_WARNING}" --color RED 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." 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 any errors in the password file"
ReportSuggestion ${TEST_NO} "Run pwck manually and correct found issues."
AddHP 0 2 AddHP 0 2
fi fi
fi fi