diff --git a/schutzbot/mockbuild.sh b/schutzbot/mockbuild.sh index 6f47c5607..07feb3a3e 100755 --- a/schutzbot/mockbuild.sh +++ b/schutzbot/mockbuild.sh @@ -9,17 +9,6 @@ function greenprint { # Get OS and architecture details. source tools/set-env-variables.sh -# Register RHEL if we are provided with a registration script. -if [[ $ID == "rhel" && $VERSION_ID == "8.3" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then - greenprint "🪙 Registering RHEL instance" - sudo chmod +x "$RHN_REGISTRATION_SCRIPT" - for _ in {0..4} - do - sudo "$RHN_REGISTRATION_SCRIPT" && break - sleep 5 - done -fi - # Mock configuration file to use for building RPMs. MOCK_CONFIG="${ID}-${VERSION_ID%.*}-$(uname -m)"