mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-27 05:49:45 +00:00
0d4f0a8a4e
Co-authored-by: nnyyxxxx <nnyyxxxx@users.noreply.github.com>
27 lines
905 B
Bash
27 lines
905 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
|
|
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
|
|
echo "RPM Fusion installed"
|
|
else
|
|
echo "RPM Fusion already installed"
|
|
fi
|
|
;;
|
|
*)
|
|
echo "Unsupported distribution: $DTYPE"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
checkEnv
|
|
installRPMFusion
|