Skip to content

Commit

Permalink
host: redhat: still need the check for yum/dnf
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Aug 5, 2015
1 parent a612187 commit 1152bad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/host_det.sh
Expand Up @@ -62,6 +62,17 @@ redhat_reqs () {
check_rpm
fi

if [ $(which lsb_release) ] ; then
rpm_distro=$(lsb_release -rs)
echo "RPM distro version: [${rpm_distro}]"

case "${rpm_distro}" in
22|23)
pkgtool="dnf"
;;
esac
fi

if [ "${rpm_pkgs}" ] ; then
echo "Red Hat, or derivatives: missing dependencies, please install:"
echo "-----------------------------"
Expand Down

0 comments on commit 1152bad

Please sign in to comment.