mockbuild: update mockbuild script after RHEL-9 GA
Removing rhel-9 templates as they are shipped upstream already and making necessary modifications to mockbuild.sh
This commit is contained in:
parent
0fd77f4594
commit
d87c60857c
4 changed files with 2 additions and 70 deletions
|
|
@ -15,12 +15,8 @@ function template_override {
|
|||
fi
|
||||
if [[ "$ID" == rhel ]]; then
|
||||
TEMPLATE=${ID}-${VERSION_ID%.*}.tpl
|
||||
if [[ ${VERSION_ID%.*} == 8 ]]; then
|
||||
sudo sed -i "s/config_opts\['redhat_subscription_required'\] = True/config_opts['redhat_subscription_required'] = False/" /etc/mock/templates/rhel-8.tpl
|
||||
elif [[ ${VERSION_ID%.*} == 9 ]]; then
|
||||
greenprint "📋 Inserting $ID-$VERSION_ID mock template"
|
||||
sudo cp -r schutzbot/el9-mock-configs/* /etc/mock/
|
||||
fi
|
||||
# disable subscription for nightlies
|
||||
sudo sed -i "s/config_opts\['redhat_subscription_required'\] = True/config_opts['redhat_subscription_required'] = False/" /etc/mock/templates/"$TEMPLATE"
|
||||
elif [[ "$ID" == fedora ]]; then
|
||||
TEMPLATE=fedora-branched.tpl
|
||||
elif [[ "$ID" == centos ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue