Merge pull request #1361 from jars99/develop

Fixed Amazon Linux 2 detection when lsb_release is installed
This commit is contained in:
Pedro Algarvio 2019-08-28 14:06:59 +01:00 committed by GitHub
commit bd5ccac1ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"