Merge pull request #192 from stormseal/fedora

Add RPM Fusion installation script
This commit is contained in:
Chris Titus 2024-08-28 20:53:29 -05:00 committed by GitHub
commit 4906667bc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 0 deletions

View File

@ -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 || ! -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]]; then
echo "Installing RPM Fusion..."
$ESCALATION_TOOL "$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
$ESCALATION_TOOL "$PACKAGER" config-manager --enable fedora-cisco-openh264
$ESCALATION_TOOL "RPM Fusion installed"
else
echo "RPM Fusion already installed"
fi
;;
*)
echo "Unsupported distribution: $DTYPE"
;;
esac
}
checkEnv
installRPMFusion

View File

@ -20,6 +20,18 @@ script = "arch/paru-setup.sh"
name = "Yay AUR Helper"
script = "arch/yay-setup.sh"
[[data]]
name = "Fedora"
[[data.preconditions]]
matches = true
data = "command_exists"
values = ["dnf"]
[[data.entries]]
name = "RPM Fusion Setup"
script = "fedora/rpm-fusion-setup.sh"
[[data]]
name = "Full System Update"
script = "system-update.sh"