From 48d23b49674926a38431e6ad572cc38209383496 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 14 Jan 2022 00:57:53 -0500 Subject: [PATCH] Fix epel install --- installJRMC | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/installJRMC b/installJRMC index f30a1fa..f02e0f0 100755 --- a/installJRMC +++ b/installJRMC @@ -1441,17 +1441,6 @@ main() { getOS - # Some distros need external repos installed for MC libraries - if [[ "$ID" == "ubuntu" ]]; then - if ! grep ^deb /etc/apt/sources.list|grep -q universe; then - echo "Adding universe repository" - sudo add-apt-repository universe - fi - elif [[ "$ID" == "centos" ]]; then - echo "Adding EPEL repository" - installPackage epel-release - fi - # Distro-specific commands if [[ "$ID" =~ ^(fedora|centos)$ ]]; then if hash dnf &>/dev/null; then @@ -1478,6 +1467,17 @@ main() { firewall_cmd(){ sudo firewall-cmd "$@"; } fi + # Some distros need external repos installed for MC libraries + if [[ "$ID" == "ubuntu" ]]; then + if ! grep ^deb /etc/apt/sources.list|grep -q universe; then + echo "Adding universe repository" + sudo add-apt-repository universe + fi + elif [[ "$ID" == "centos" ]]; then + echo "Adding EPEL repository" + installPackage epel-release + fi + parseInput "$@" # Select MC version to work with