Properly identify Amazon Linux AMI using lsb_release. Fixes #416.

This commit is contained in:
Pedro Algarvio 2014-06-29 00:31:15 +01:00
parent 697a7a97b3
commit 4b04a36508

View file

@ -687,6 +687,8 @@ __gather_linux_system_info() {
elif [ "${DISTRO_NAME}" = "OracleServer" ]; then
# This the Oracle Linux Server 6.5
DISTRO_NAME="Oracle Linux"
elif [ "${DISTRO_NAME}" = "AmazonAMI" ]; then
DISTRO_NAME="Amazon Linux AMI"
fi
rv=$(lsb_release -sr)
[ "${rv}" != "" ] && DISTRO_VERSION=$(__parse_version_string "$rv")