Support Oracle Linux detection before UPDATE 3

Refs #338
This commit is contained in:
Pedro Algarvio 2014-04-15 23:45:28 +01:00
parent b72bbbc2ea
commit 447d6aab4f

View file

@ -664,6 +664,9 @@ __gather_linux_system_info() {
elif [ "${DISTRO_NAME}" = "SUSE LINUX" ]; then
# lsb_release -si returns "SUSE LINUX" on SLES 11 SP3
DISTRO_NAME="suse"
elif [ "${DISTRO_NAME}" = "EnterpriseEnterpriseServer" ]; then
# This the Oracle Linux Enterprise ID before ORACLE LINUX 5 UPDATE 3
DISTRO_NAME="Oracle Linux"
fi
rv=$(lsb_release -sr)
[ "${rv}x" != "x" ] && DISTRO_VERSION=$(__parse_version_string "$rv")