Skip to content

Commit

Permalink
Enable EPEL repo for centos-stream test profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
michalfabik authored and msrb committed Dec 16, 2024
1 parent f3e774f commit 4d3cb13
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ if [ -n "$ADDITIONAL_TASK_IDS" ]; then
mtps-get-task --createrepo --installrepofile --recursive --task="$additional_task_id" --download='/var/lib/repo-for-side-tag' --repofilename=side-tag
done
fi

if [[ "$PROFILE_NAME" == centos-stream-* ]]; then
# enable CRB and EPEL
echo "Enabling CRB and EPEL..."

CENTOS_STREAM_RELEASE=$(sed 's/centos-stream-//' <<< "$PROFILE_NAME")
EPEL_RELEASE_PACKAGE_URL="https://dl.fedoraproject.org/pub/epel/epel-release-latest-$CENTOS_STREAM_RELEASE.noarch.rpm"
rpm -q epel-release && yum -y reinstall "$EPEL_RELEASE_PACKAGE_URL" || yum -y install "$EPEL_RELEASE_PACKAGE_URL"

yum config-manager --enable crb
yum config-manager --enable epel
fi

0 comments on commit 4d3cb13

Please sign in to comment.