mockbuild: remove subscriptions
Everything is pre-subscribed. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
fa1a4be4d3
commit
99a8d67812
1 changed files with 0 additions and 11 deletions
|
|
@ -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)"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue