diff --git a/stack.sh b/stack.sh index 44a07439af..58b4479635 100755 --- a/stack.sh +++ b/stack.sh @@ -250,8 +250,10 @@ failovermethod=priority enabled=0 gpgcheck=0 EOF - # bare yum call due to --enablerepo - sudo yum --enablerepo=epel-bootstrap -y install epel-release || \ + # Enable a bootstrap repo. It is removed after finishing + # the epel-release installation. + sudo yum-config-manager --enable epel-bootstrap + yum_install epel-release || \ die $LINENO "Error installing EPEL repo, cannot continue" # epel rpm has installed it's version sudo rm -f /etc/yum.repos.d/epel-bootstrap.repo