Merge "Ensure yum-utils is installed in epel element"

This commit is contained in:
Zuul 2020-10-13 09:56:57 +00:00 committed by Gerrit Code Review
commit 061cc48583

View File

@ -35,8 +35,11 @@ fi
if [ ${DIB_EPEL_DISABLED:-0} -ne 0 ]; then
if [[ ${YUM} == "dnf" ]]; then
rpm -q dnf-plugins-core || dnf install -y dnf-plugins-core
dnf config-manager --set-disabled "epel*"
else
# Cannot rely on package-installs, it is executed later
rpm -q yum-utils || yum install -y yum-utils
yum-config-manager --disable "epel*"
fi
fi