Fixed Amazon Linux 2 detection when lsb_release is installed

This commit is contained in:
Jared Bristow 2019-08-14 10:28:53 -06:00
parent 391d9e577c
commit dcbf247c4f

View file

@ -1001,7 +1001,7 @@ __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
elif [ "${DISTRO_NAME}" = "AmazonAMI" ] || [ "${DISTRO_NAME}" = "Amazon" ]; then
DISTRO_NAME="Amazon Linux AMI"
elif [ "${DISTRO_NAME}" = "ManjaroLinux" ]; then
DISTRO_NAME="Arch Linux"