Merge "Fix package manager call for RHEL-based distros"

This commit is contained in:
Jenkins 2016-08-29 15:58:35 +00:00 committed by Gerrit Code Review
commit 5e2f6917b9

View File

@ -176,11 +176,11 @@ if need_required_packages; then
sudo zypper --non-interactive --gpg-auto-import-keys in $package_list sudo zypper --non-interactive --gpg-auto-import-keys in $package_list
;; ;;
"fedora" | "rhel" | "centos") "fedora" | "rhel" | "centos")
if [ ${platform} = "centos" ]; then if [ ${platform} = "fedora" ]; then
# install EPEL repo, in order to install argparse sudo dnf install $package_list -y
sudo rpm -Uvh --force http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm else
sudo yum install $package_list -y
fi fi
sudo yum install $package_list -y
;; ;;
*) *)
echo -e "Unknown platform '$platform' for installing packages.\nAborting" echo -e "Unknown platform '$platform' for installing packages.\nAborting"