|
|
|
@ -42,8 +42,8 @@ enable_disable_repo(){
|
|
|
|
|
crb_repo=$(dnf repolist --all | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt | awk '{print $1}')
|
|
|
|
|
|
|
|
|
|
# Determine if we are on RHEL or not, then do the correct steps
|
|
|
|
|
if echo "${crb_repo}" | grep -q "codeready" ; then
|
|
|
|
|
# Only RHEL has a repo with codeready in it, use subcription-manager
|
|
|
|
|
source /etc/os-release
|
|
|
|
|
if [[ "${NAME}" =~ "Red Hat" ]] ; then
|
|
|
|
|
subscription-manager repos ${command} ${crb_repo}
|
|
|
|
|
else
|
|
|
|
|
# Determine if dnf-command(config-manager) is installed
|
|
|
|
|