From 8c29e8144d8fbc9b1793beb9455ef72ea1ef3969 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 26 Jun 2023 17:28:53 +0300 Subject: [PATCH] CI variable name has changed, see https://github.com/osbuild/gitlab-ci-terraform-executor/commit/25d1a458a0fc71d4b9f2364f2e4b62097267b74e --- schutzbot/mockbuild.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/schutzbot/mockbuild.sh b/schutzbot/mockbuild.sh index 8d49444b..1ff15d15 100755 --- a/schutzbot/mockbuild.sh +++ b/schutzbot/mockbuild.sh @@ -58,10 +58,10 @@ source tools/set-env-variables.sh # Register RHEL if we are provided with a registration script and intend to do that. REGISTER="${REGISTER:-'false'}" -if [[ $REGISTER == "true" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then +if [[ $REGISTER == "true" && -n "${V2_RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then greenprint "🪙 Registering RHEL instance" - sudo chmod +x "$RHN_REGISTRATION_SCRIPT" - sudo "$RHN_REGISTRATION_SCRIPT" + sudo chmod +x "$V2_RHN_REGISTRATION_SCRIPT" + sudo "$V2_RHN_REGISTRATION_SCRIPT" fi # Mock configuration file to use for building RPMs.