Check the existence of the free and nonfree repo

This commit is contained in:
stormseal 2024-08-24 12:09:55 +02:00 committed by GitHub
parent d89d1e2466
commit db030041e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,7 +7,7 @@
installRPMFusion() { installRPMFusion() {
case $PACKAGER in case $PACKAGER in
dnf) dnf)
if [ ! -e "/etc/yum.repos.d/rpmfusion-free.repo" ]; then if [[ ! -e /etc/yum.repos.d/rpmfusion-free.repo || ! -e /etc/yum.repos.d/rpmfusion-nonfree.repo ]]; then
echo "Installing RPM Fusion..." echo "Installing RPM Fusion..."
sudo "$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 sudo "$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
sudo "$PACKAGER" config-manager --enable fedora-cisco-openh264 sudo "$PACKAGER" config-manager --enable fedora-cisco-openh264