Skip to content

Commit

Permalink
chore(ci): minor improvement for RPMFUSION_MIRROR
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Feb 9, 2024
1 parent 189fbee commit 4b61c40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions kmods-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@ for REPO in $(rpm -ql ublue-os-akmods-addons|grep ^"/etc"|grep repo$); do
sed -i 's@enabled=1@enabled=0@g' ${REPO}
done

# reset forced use of single rpmfusion mirror
rename -v .repo.bak .repo /etc/yum.repos.d/rpmfusion-*repo.bak
if [ -n "${RPMFUSION_MIRROR}" ]; then
# reset forced use of single rpmfusion mirror
echo "Revert from single rpmfusion mirror: ${RPMFUSION_MIRROR}"
rename -v .repo.bak .repo /etc/yum.repos.d/rpmfusion-*repo.bak
fi

0 comments on commit 4b61c40

Please sign in to comment.