2024-08-23 12:52:26 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2024-09-12 21:14:50 +01:00
|
|
|
. ../../common-script.sh
|
2024-08-23 12:52:26 +01:00
|
|
|
|
|
|
|
# https://rpmfusion.org/Configuration
|
|
|
|
|
|
|
|
installRPMFusion() {
|
2024-09-17 13:23:23 +01:00
|
|
|
case "$PACKAGER" in
|
2024-08-23 12:52:26 +01:00
|
|
|
dnf)
|
2024-09-12 21:14:50 +01:00
|
|
|
if [ ! -e /etc/yum.repos.d/rpmfusion-free.repo ] || [ ! -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]; then
|
2024-09-19 01:40:05 +01:00
|
|
|
printf "%b\n" "${YELLOW}Installing RPM Fusion...${RC}"
|
2024-09-19 01:03:32 +01:00
|
|
|
"$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
|
2024-09-19 01:40:05 +01:00
|
|
|
printf "%b\n" "${GREEN}RPM Fusion installed${RC}"
|
2024-08-23 12:52:26 +01:00
|
|
|
else
|
2024-09-19 01:40:05 +01:00
|
|
|
printf "%b\n" "${GREEN}RPM Fusion already installed${RC}"
|
2024-08-23 12:52:26 +01:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
2024-09-19 01:40:05 +01:00
|
|
|
printf "%b\n" "${RED}Unsupported distribution: $DTYPE${RC}"
|
2024-08-23 12:52:26 +01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
2024-09-19 02:34:27 +01:00
|
|
|
checkEscalationTool
|
2024-08-23 12:52:26 +01:00
|
|
|
installRPMFusion
|