Merge "add short name for distros"

This commit is contained in:
Zuul 2018-11-30 04:51:09 +00:00 committed by Gerrit Code Review
commit c67f4460f4
1 changed files with 2 additions and 2 deletions

View File

@ -25,9 +25,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"