|
|
@ -27,7 +27,7 @@ usage() {
|
|
|
|
# Show the status
|
|
|
|
# Show the status
|
|
|
|
show_status()(
|
|
|
|
show_status()(
|
|
|
|
# Determine if a version of CRB is enabled
|
|
|
|
# Determine if a version of CRB is enabled
|
|
|
|
crb_repo=$(dnf repolist | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt | awk '{print $1}')
|
|
|
|
crb_repo=$(dnf repolist | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt -e rhui | awk '{print $1}')
|
|
|
|
if [ "${crb_repo}" == "" ] ; then
|
|
|
|
if [ "${crb_repo}" == "" ] ; then
|
|
|
|
echo "CRB repo is disabled"
|
|
|
|
echo "CRB repo is disabled"
|
|
|
|
else
|
|
|
|
else
|
|
|
@ -39,7 +39,7 @@ show_status()(
|
|
|
|
enable_disable_repo(){
|
|
|
|
enable_disable_repo(){
|
|
|
|
command="$1"
|
|
|
|
command="$1"
|
|
|
|
# Determine which repo we need to change
|
|
|
|
# Determine which repo we need to change
|
|
|
|
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}')
|
|
|
|
crb_repo=$(dnf repolist --all | grep -i -e crb -e powertools -e codeready | grep -v -i -e debug -e source -e eus -e virt -e rhui | awk '{print $1}')
|
|
|
|
|
|
|
|
|
|
|
|
# Determine if we are on RHEL or not, then do the correct steps
|
|
|
|
# Determine if we are on RHEL or not, then do the correct steps
|
|
|
|
source /etc/os-release
|
|
|
|
source /etc/os-release
|
|
|
|