Don't support CentOS end of life versions.

This commit is contained in:
Pedro Algarvio 2013-09-26 16:41:04 +01:00
parent 1e0a6c312f
commit 457eed894c

View file

@ -1038,6 +1038,16 @@ __check_end_of_life_versions() {
fi
;;
centos)
# CentOS versions lower than 5 are no longer supported
if [ $DISTRO_MAJOR_VERSION -lt 5 ]; then
echoerror "End of life distributions are not supported."
echoerror "Please consider upgrading to the next stable. See:"
echoerror " http://wiki.centos.org/Download"
exit 1
fi
;;
*)
;;
esac