mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Show end-of-life status
This commit is contained in:
parent
5bff11a061
commit
7c8a9d5cc8
1 changed files with 6 additions and 4 deletions
10
lynis
10
lynis
|
|
@ -676,12 +676,14 @@ ${NORMAL}
|
|||
echo " Operating system name: ${OS_NAME}"
|
||||
echo " Operating system version: ${OS_VERSION}"
|
||||
LogText "EOL check: ${EOL}"
|
||||
if [ ${EOL} -eq 1 ]; then
|
||||
echo " End-of-life: ${WARNING}YES${NORMAL}"
|
||||
if [ ${EOL} -eq 0 ]; then
|
||||
echo " End-of-life: ${STATUS_NO}"
|
||||
elif [ ${EOL} -eq 1 ]; then
|
||||
echo " End-of-life: ${WARNING}${STATUS_YES}${NORMAL}"
|
||||
ReportWarning "GEN-0010" "This version ${OS_VERSION} is marked end-of-life as of ${EOL_DATE}"
|
||||
elif [ ${EOL} -eq 255 ]; then
|
||||
# TODO - mark as item where community can provide help
|
||||
LogText "Note: the end-of-life of '${OS_FULLNAME}' could not be checked. Entry missing in software-eol.db?"
|
||||
echo " End-of-life: ${WARNING}${STATUS_UNKNOWN}${NORMAL}"
|
||||
LogText "Note: the end-of-life of '${OS_FULLNAME}' could not be checked. Entry is missing in db/software-eol.db?"
|
||||
fi
|
||||
|
||||
if [ -n "${OS_MODE}" ]; then echo " Operating system mode: ${OS_MODE}"; fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue