Skip to content

Commit

Permalink
chore: Install all RPMFusion repos in cases when only free or non-fre…
Browse files Browse the repository at this point in the history
…e repo is installed pt. 2
  • Loading branch information
fiftydinar authored Nov 25, 2024
1 parent 04759a7 commit 2eae564
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions modules/bling/installers/rpmfusion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ NEGATIVO_REPO_FILE="$(awk -F'=' '$1 == "name" && $2 == "negativo17 - Multimedia"
# Check if rpmfusion is already installed before running
if ! rpm -q rpmfusion-free-release &>/dev/null || ! rpm -q rpmfusion-nonfree-release &>/dev/null; then
echo "Running RPMFusion repo install..."
rpm-ostree install \
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${OS_VERSION}.noarch.rpm" \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${OS_VERSION}.noarch.rpm"
if ! rpm -q rpmfusion-free-release &>/dev/null && ! rpm -q rpmfusion-nonfree-release &>/dev/null; then
rpm-ostree install \
"https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-${OS_VERSION}.noarch.rpm" \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${OS_VERSION}.noarch.rpm"
elif ! rpm -q rpmfusion-free-release &>/dev/null; then
rpm-ostree install \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-free-release-${OS_VERSION}.noarch.rpm"
elif ! rpm -q rpmfusion-nonfree-release &>/dev/null; then
rpm-ostree install \
"https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${OS_VERSION}.noarch.rpm"
fi
# check if negativo17 repo is installed
if [[ -n "${NEGATIVO_REPO_FILE}" ]]; then
echo "Making sure that Negativo17 repo is disabled"
Expand Down

0 comments on commit 2eae564

Please sign in to comment.