From 4b04a365086241f741a5e3190e8e7e50df750d9a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 29 Jun 2014 00:31:15 +0100 Subject: [PATCH] Properly identify Amazon Linux AMI using `lsb_release`. Fixes #416. --- bootstrap-salt.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index ded7996..3f228e4 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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")