From 81b53da48c361c98a486e6dda5bc3474661f93d1 Mon Sep 17 00:00:00 2001 From: stormseal <178997548+stormseal@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:52:26 +0200 Subject: [PATCH] Added RPM Fusion installation script Script to install RPM Fusion on Fedora --- .../system-setup/fedora/rpm-fusion-setup.sh | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/commands/system-setup/fedora/rpm-fusion-setup.sh diff --git a/src/commands/system-setup/fedora/rpm-fusion-setup.sh b/src/commands/system-setup/fedora/rpm-fusion-setup.sh new file mode 100644 index 00000000..ad09b2c1 --- /dev/null +++ b/src/commands/system-setup/fedora/rpm-fusion-setup.sh @@ -0,0 +1,26 @@ +#!/bin/sh -e + +. "$(dirname "$0")/../../common-script.sh" + +# https://rpmfusion.org/Configuration + +installRPMFusion() { + case $PACKAGER in + dnf) + if [[ ! -e "/etc/yum.repos.d/rpmfusion-free.repo" ]]; then + echo "Installing RPM Fusion..." + sudo "$PACKAGER" install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm + sudo "$PACKAGER" config-manager --enable fedora-cisco-openh264 + echo "RPM Fusion installed" + else + echo "RPM Fusion already installed" + fi + ;; + *) + echo "Unsupported distribution: $DTYPE" + ;; + esac +} + +checkEnv +installRPMFusion