mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
Merge pull request #192 from stormseal/fedora
Add RPM Fusion installation script
This commit is contained in:
commit
4906667bc1
26
src/commands/system-setup/fedora/rpm-fusion-setup.sh
Normal file
26
src/commands/system-setup/fedora/rpm-fusion-setup.sh
Normal 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
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user