Provide more details when program is old or outdated

This commit is contained in:
Michael Boelen 2016-07-20 10:51:34 +02:00
parent d9a688e49b
commit 1852095bb0
1 changed files with 11 additions and 8 deletions

19
lynis
View File

@ -32,8 +32,8 @@
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com" PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
# Version details # Version details
PROGRAM_RELEASE_DATE="2016-07-16" PROGRAM_RELEASE_DATE="2016-07-20"
PROGRAM_RELEASE_TIMESTAMP=1468518142 PROGRAM_RELEASE_TIMESTAMP=1469004645
PROGRAM_RELEASE_TYPE="dev" # dev or final PROGRAM_RELEASE_TYPE="dev" # dev or final
PROGRAM_VERSION="2.3.2" PROGRAM_VERSION="2.3.2"
@ -691,16 +691,19 @@ ${NORMAL}
echo "" echo ""
if [ ${OLD_RELEASE} -eq 1 ]; then if [ ${OLD_RELEASE} -eq 1 ]; then
echo " ${YELLOW}Current version is more than 4 months old${NORMAL}" echo " ${YELLOW}Current version is more than 4 months old${NORMAL}"
else echo ""
echo " Current version : ${YELLOW}${PROGRAM_AC}${NORMAL} Latest version : ${GREEN}${PROGRAM_LV}${NORMAL}" fi
if [ ${PROGRAM_LV} -gt 0 ]; then
echo " Current version : ${YELLOW}${PROGRAM_AC}${NORMAL} Latest version : ${GREEN}${PROGRAM_LV}${NORMAL}"
echo ""
fi fi
echo ""
echo " ${WHITE}Please update to the latest version.${NORMAL}" echo " ${WHITE}Please update to the latest version.${NORMAL}"
echo " New releases include additional features, bug fixes, tests and baselines.${NORMAL}" echo " New releases include additional features, bug fixes, tests and baselines.${NORMAL}"
echo "" echo ""
echo " Download the latest version via our website or GitHub" echo " Download the latest version:"
echo " Website: https://cisofy.com/downloads/" echo " Packages (DEB/RPM) - https://packages.cisofy.com"
echo " GitHub: https://github.com/CISOfy/lynis" echo " Website - https://cisofy.com/downloads/"
echo " GitHub - https://github.com/CISOfy/lynis"
echo "" echo ""
echo " ===============================================================================" echo " ==============================================================================="
echo "" echo ""