SuSE versions lower than 11 SP2 are also not supported

This commit is contained in:
Pedro Algarvio 2013-09-26 10:59:08 +01:00
parent 7e44200d7d
commit a378b7aeb2

View file

@ -993,6 +993,17 @@ __check_end_of_life_versions() {
fi
;;
suse)
SUSE_PATCHLEVEL=$(awk '/PATCHLEVEL/ {print $3}' /etc/SuSE-release )
if [ "x${SUSE_PATCHLEVEL}" = "x" ]; then
SUSE_PATCHLEVEL="00"
fi
if ([ $DISTRO_MAJOR_VERSION -eq 11 ] && [ $SUSE_PATCHLEVEL -lt 02 ]) || [ $DISTRO_MAJOR_VERSION -lt 11 ]; then
echoerror "Versions lower than SuSE 11 SP2 are not supported."
echoerror "Please consider upgrading to the next stable"
exit 1
fi
*)
;;
esac