mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-25 14:30:11 +00:00
97576d2087
* First commit * Small enhancements * Update configure-dnf.sh * update * Update configure-dnf.sh * update * Update multimedia-codecs.sh * Update multimedia-codecs.sh
28 lines
1012 B
Bash
28 lines
1012 B
Bash
#!/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
|
|
printf "%b\n" "${GREEN}RPM Fusion installed${RC}"
|
|
else
|
|
printf "%b\n" "${GREEN}RPM Fusion already installed${RC}"
|
|
fi
|
|
;;
|
|
*)
|
|
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
checkEscalationTool
|
|
installRPMFusion
|