From d4fd3c6746ab88e681163c216eb4ebec3d655662 Mon Sep 17 00:00:00 2001 From: cloudnull Date: Thu, 29 Nov 2018 11:25:12 -0600 Subject: [PATCH] add short name for distros Change-Id: Ia5babcafa1a7a58bdf8a4f5961341a840ca1c105 Signed-off-by: cloudnull --- bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh index 961d6534..6b8aa8e6 100755 --- a/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh +++ b/bootstrap-embedded-ansible/bootstrap-embedded-ansible.sh @@ -23,9 +23,9 @@ if [[ ! -e "${ANSIBLE_EMBED_HOME}/bin/ansible" ]]; then if [ ${ID} = "ubuntu" ]; then apt-get update apt-get -y install python-virtualenv - elif [ ${ID} = "opensuse" ]; then + elif [ ${ID} = "opensuse" ] || [ ${ID} = "suse" ]; then zypper install -y python-virtualenv - elif [ ${ID} = "centos" ] || [ ${ID} ="redhat" ]; then + elif [ ${ID} = "centos" ] || [ ${ID} = "redhat" ] || [ ${ID} = "rhel" ]; then yum install -y python-virtualenv else echo "Unknown operating system"