From 99a8d678124698e78ecaee9bcb02c553959e9cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Wed, 20 Oct 2021 10:55:46 +0200 Subject: [PATCH] mockbuild: remove subscriptions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Everything is pre-subscribed. Signed-off-by: Ondřej Budai --- schutzbot/mockbuild.sh | 11 ----------- 1 file changed, 11 deletions(-) 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)"