mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Properly identify Amazon Linux AMI using lsb_release
. Fixes #416.
This commit is contained in:
parent
697a7a97b3
commit
4b04a36508
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue