mirror of https://github.com/CISOfy/lynis.git
Improved display when displaying update status
This commit is contained in:
parent
9ed32c4e2f
commit
7867241d79
17
lynis
17
lynis
|
@ -208,20 +208,23 @@
|
||||||
# available version (due lack of internet connectivity for example)
|
# available version (due lack of internet connectivity for example)
|
||||||
if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then
|
if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then
|
||||||
# Set both to safe values
|
# Set both to safe values
|
||||||
PROGRAM_AC=0
|
PROGRAM_AC=0; PROGRAM_LV=0
|
||||||
#DB_MALWARE_LV=0; DB_MALWARE_CV=0
|
#DB_MALWARE_LV=0; DB_MALWARE_CV=0
|
||||||
#DB_FILEPERMS_LV=0; DB_FILEPERMS_CV=0
|
#DB_FILEPERMS_LV=0; DB_FILEPERMS_CV=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""; echo " == ${WHITE}${PROGRAM_name}${NORMAL} =="; echo ""
|
echo ""; echo " == ${WHITE}${PROGRAM_name}${NORMAL} =="; echo ""
|
||||||
echo -n " Version : ${PROGRAM_version}"
|
echo " Version : ${PROGRAM_version}"
|
||||||
if [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
echo -n " Status : "
|
||||||
echo " [ ${YELLOW}Outdated${NORMAL} ]";
|
if [ ${PROGRAM_LV} -eq 0 ]; then
|
||||||
|
echo "${RED}Unknown${NORMAL}";
|
||||||
|
elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
||||||
|
echo "${YELLOW}Outdated${NORMAL}";
|
||||||
else
|
else
|
||||||
echo " [ ${GREEN}Up-to-date${NORMAL} ]"
|
echo "${GREEN}Up-to-date${NORMAL}"
|
||||||
fi
|
fi
|
||||||
echo " Release date : ${PROGRAM_releasedate}"
|
echo " Release date : ${PROGRAM_releasedate}"
|
||||||
echo " Update location : ${PROGRAM_website}"
|
echo " Update location : ${PROGRAM_website}"
|
||||||
# echo ""
|
# echo ""
|
||||||
# echo " == ${WHITE}Plugins${NORMAL} =="
|
# echo " == ${WHITE}Plugins${NORMAL} =="
|
||||||
# echo ""
|
# echo ""
|
||||||
|
|
Loading…
Reference in New Issue