tests: Cleanup leftover 8.4 references
This commit is contained in:
parent
a3ac31a483
commit
42480f7b26
4 changed files with 2 additions and 74 deletions
|
|
@ -84,16 +84,7 @@ greenprint "🧬 Using mock config: ${MOCK_CONFIG}"
|
|||
greenprint "📦 SHA: ${COMMIT}"
|
||||
greenprint "📤 RPMS will be uploaded to: ${REPO_URL}"
|
||||
|
||||
# rhel 8.4 and 8.5 will run off of the internal repos and does not have a redhat subscription
|
||||
if [[ $VERSION_ID == 8.4 ]]; then
|
||||
greenprint "📋 Updating RHEL 8 mock template for unsubscribed image"
|
||||
sudo sed -i '/# repos/q' /etc/mock/templates/rhel-8.tpl
|
||||
# remove the subscription check
|
||||
sudo sed -i "s/config_opts\['redhat_subscription_required'\] = True/config_opts['redhat_subscription_required'] = False/" /etc/mock/templates/rhel-8.tpl
|
||||
cat "$RHEL84_NIGHTLY_REPO" | sudo tee -a /etc/mock/templates/rhel-8.tpl > /dev/null
|
||||
# We need triple quotes at the end of the template to mark the end of the repo list.
|
||||
echo '"""' | sudo tee -a /etc/mock/templates/rhel-8.tpl
|
||||
elif [[ $VERSION_ID == 8.5 ]]; then
|
||||
if [[ $VERSION_ID == 8.5 ]]; then
|
||||
greenprint "📋 Updating RHEL 8 mock template for unsubscribed image"
|
||||
sudo sed -i '/# repos/q' /etc/mock/templates/rhel-8.tpl
|
||||
# remove the subscription check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue