Disable all enabled epel repos in CentOS8

EPEL centos8 have different epel repos like
epel, epel-modular, epel-playground etc, so
we need to disable all not just epel.

Also ensure other epel repositories in CentOS7
like epel-testing are also disabled.

Related-Bug: #1885315
Change-Id: I02b3b83fa2047702d5f069d3ca1c9c0bcc1dab52
This commit is contained in:
yatinkarel 2020-06-29 18:18:07 +05:30
parent 868a6f0c8a
commit e999368d2c

View File

@ -35,9 +35,9 @@ fi
if [ ${DIB_EPEL_DISABLED:-0} -ne 0 ]; then if [ ${DIB_EPEL_DISABLED:-0} -ne 0 ]; then
if [[ ${YUM} == "dnf" ]]; then if [[ ${YUM} == "dnf" ]]; then
dnf config-manager --set-disabled epel dnf config-manager --set-disabled "epel*"
else else
yum-config-manager --disable epel yum-config-manager --disable "epel*"
fi fi
fi fi