2024-08-23 12:52:26 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
. "$(dirname "$0")/../../common-script.sh"
|
|
|
|
|
|
|
|
# https://rpmfusion.org/Configuration
|
|
|
|
|
|
|
|
installRPMFusion() {
|
|
|
|
case $PACKAGER in
|
|
|
|
dnf)
|
2024-08-24 11:09:55 +01:00
|
|
|
if [[ ! -e /etc/yum.repos.d/rpmfusion-free.repo || ! -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]]; then
|
2024-08-23 12:52:26 +01:00
|
|
|
echo "Installing RPM Fusion..."
|
2024-08-29 02:52:34 +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
|
|
|
|
$ESCALATION_TOOL "RPM Fusion installed"
|
2024-08-23 12:52:26 +01:00
|
|
|
else
|
|
|
|
echo "RPM Fusion already installed"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Unsupported distribution: $DTYPE"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
checkEnv
|
|
|
|
installRPMFusion
|