initial commit
This commit is contained in:
parent
212a05d71a
commit
e1427912f5
80 changed files with 8684 additions and 0 deletions
29
core/tabs/system-setup/fedora/rpm-fusion-setup.sh
Normal file
29
core/tabs/system-setup/fedora/rpm-fusion-setup.sh
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../../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
|
||||
printf "%b\n" "${YELLOW}Installing RPM Fusion...${RC}"
|
||||
"$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" "$PACKAGER" config-manager --set-enabled rpmfusion-nonfree-updates
|
||||
"$ESCALATION_TOOL" "$PACKAGER" config-manager --set-enabled rpmfusion-free-updates
|
||||
printf "%b\n" "${GREEN}RPM Fusion installed and enabled${RC}"
|
||||
else
|
||||
printf "%b\n" "${GREEN}RPM Fusion already installed${RC}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
installRPMFusion
|
Loading…
Add table
Add a link
Reference in a new issue