From 85ab3712d2f85e3e0706f8c2d22956be3a62fce2 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 14 Jan 2022 01:19:04 -0500 Subject: [PATCH] Don't add external repos before uninstall --- installJRMC | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/installJRMC b/installJRMC index aa064b4..2fa902f 100755 --- a/installJRMC +++ b/installJRMC @@ -1468,17 +1468,6 @@ 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 @@ -1510,6 +1499,17 @@ main() { exit $? 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 + if (( REPO_INSTALL_SWITCH )); then if [[ "$ID" == "suse" ]]; then echo "A SUSE repository is not yet available"