diff --git a/stack.sh b/stack.sh index 3b5fb7459b..ec13338948 100755 --- a/stack.sh +++ b/stack.sh @@ -234,36 +234,41 @@ fi if [[ is_fedora && ( $DISTRO == "rhel6" || $DISTRO == "rhel7" ) ]]; then # RHEL requires EPEL for many Open Stack dependencies - if ! sudo yum repolist enabled epel | grep -q 'epel'; then - echo "EPEL not detected; installing" - # This trick installs the latest epel-release from a bootstrap - # repo, then removes itself (as epel-release installed the - # "real" repo). - # - # you would think that rather than this, you could use - # $releasever directly in .repo file we create below. However - # RHEL gives a $releasever of "6Server" which breaks the path; - # see https://bugzilla.redhat.com/show_bug.cgi?id=1150759 - if [[ $DISTRO == "rhel7" ]]; then - epel_ver="7" - elif [[ $DISTRO == "rhel6" ]]; then - epel_ver="6" - fi - cat <