bryan 3 лет назад
Родитель
Сommit
48d23b4967
1 измененных файлов с 11 добавлено и 11 удалено
  1. 11 11
      installJRMC

+ 11 - 11
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