From dcbf247c4f3b1071739babfc71b46596d335c192 Mon Sep 17 00:00:00 2001 From: Jared Bristow Date: Wed, 14 Aug 2019 10:28:53 -0600 Subject: [PATCH] Fixed Amazon Linux 2 detection when lsb_release is installed --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 6e06fd0..b1582de 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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"