mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
Check the existence of the free and nonfree repo
This commit is contained in:
parent
d89d1e2466
commit
db030041e6
|
@ -7,7 +7,7 @@
|
|||
installRPMFusion() {
|
||||
case $PACKAGER in
|
||||
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..."
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user