Tweak crb script, check os-release for RHEL (#2186721)

epel8 imports/epel8/epel-release-8-19.el8
Troy Dawson 2 years ago
parent 0bc07d5d20
commit 70aa753df4

4
crb

@ -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}') 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 # Determine if we are on RHEL or not, then do the correct steps
if echo "${crb_repo}" | grep -q "codeready" ; then source /etc/os-release
# Only RHEL has a repo with codeready in it, use subcription-manager if [[ "${NAME}" =~ "Red Hat" ]] ; then
subscription-manager repos ${command} ${crb_repo} subscription-manager repos ${command} ${crb_repo}
else else
# Determine if dnf-command(config-manager) is installed # Determine if dnf-command(config-manager) is installed

@ -1,6 +1,6 @@
Name: epel-release Name: epel-release
Version: 8 Version: 8
Release: 18%{dist} Release: 19%{dist}
Summary: Extra Packages for Enterprise Linux repository configuration Summary: Extra Packages for Enterprise Linux repository configuration
License: GPLv2 License: GPLv2
@ -98,6 +98,9 @@ fi
%changelog %changelog
* Mon Apr 17 2023 Troy Dawson <tdawson@redhat.com> - 8-19
- Tweak crb script, check os-release for RHEL (#2186721)
* Thu Sep 29 2022 Carl George <carl@george.computer> - 8-18 * Thu Sep 29 2022 Carl George <carl@george.computer> - 8-18
- Disable epel-modular repo by default - Disable epel-modular repo by default
- Mark all epel-modular repos as deprecated - Mark all epel-modular repos as deprecated

Loading…
Cancel
Save