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)
|
||||
if [ "${PROGRAM_AC}" = "" -o "${PROGRAM_LV}" = "" ]; then
|
||||
# Set both to safe values
|
||||
PROGRAM_AC=0
|
||||
PROGRAM_AC=0; PROGRAM_LV=0
|
||||
#DB_MALWARE_LV=0; DB_MALWARE_CV=0
|
||||
#DB_FILEPERMS_LV=0; DB_FILEPERMS_CV=0
|
||||
fi
|
||||
|
||||
echo ""; echo " == ${WHITE}${PROGRAM_name}${NORMAL} =="; echo ""
|
||||
echo -n " Version : ${PROGRAM_version}"
|
||||
if [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
||||
echo " [ ${YELLOW}Outdated${NORMAL} ]";
|
||||
echo " Version : ${PROGRAM_version}"
|
||||
echo -n " Status : "
|
||||
if [ ${PROGRAM_LV} -eq 0 ]; then
|
||||
echo "${RED}Unknown${NORMAL}";
|
||||
elif [ ${PROGRAM_LV} -gt ${PROGRAM_AC} ]; then
|
||||
echo "${YELLOW}Outdated${NORMAL}";
|
||||
else
|
||||
echo " [ ${GREEN}Up-to-date${NORMAL} ]"
|
||||
echo "${GREEN}Up-to-date${NORMAL}"
|
||||
fi
|
||||
echo " Release date : ${PROGRAM_releasedate}"
|
||||
echo " Update location : ${PROGRAM_website}"
|
||||
echo " Release date : ${PROGRAM_releasedate}"
|
||||
echo " Update location : ${PROGRAM_website}"
|
||||
# echo ""
|
||||
# echo " == ${WHITE}Plugins${NORMAL} =="
|
||||
# echo ""
|
||||
|
|
Loading…
Reference in New Issue