diff --git a/schutzbot/deploy.sh b/schutzbot/deploy.sh index b9132d777..c3ba59689 100755 --- a/schutzbot/deploy.sh +++ b/schutzbot/deploy.sh @@ -63,16 +63,6 @@ if [[ $ID == "rhel" && ${VERSION_ID%.*} == "9" ]]; then sudo systemctl stop tmp.mount && sudo systemctl mask tmp.mount fi -if [[ $ID == "rhel" && $VERSION_ID == "8.3" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then - greenprint "Registering RHEL" - sudo chmod +x "$RHN_REGISTRATION_SCRIPT" - for _ in {0..4} - do - sudo "$RHN_REGISTRATION_SCRIPT" && break - sleep 5 - done -fi - # Distro version that this script is running on. DISTRO_VERSION=${ID}-${VERSION_ID} diff --git a/schutzbot/mockbuild.sh b/schutzbot/mockbuild.sh index 52ab2dc36..d1414771e 100755 --- a/schutzbot/mockbuild.sh +++ b/schutzbot/mockbuild.sh @@ -71,7 +71,6 @@ if [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 8 ]] && ! rpm -q sudo rpm -Uvh /tmp/epel.rpm elif [[ $ID == rhel || $ID == centos ]] && [[ ${VERSION_ID%.*} == 9 ]]; then # we have our own small epel for EL9, let's install it - # install Red Hat certificate, otherwise dnf copr fails curl -LO --insecure https://hdn.corp.redhat.com/rhel8-csb/RPMS/noarch/redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm sudo dnf install -y ./redhat-internal-cert-install-0.1-23.el7.csb.noarch.rpm dnf-plugins-core