Don't add external repos before uninstall
This commit is contained in:
22
installJRMC
22
installJRMC
@@ -1468,17 +1468,6 @@ main() {
|
|||||||
firewall_cmd(){ sudo firewall-cmd "$@"; }
|
firewall_cmd(){ sudo firewall-cmd "$@"; }
|
||||||
fi
|
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 "$@"
|
parseInput "$@"
|
||||||
|
|
||||||
# Select MC version to work with
|
# Select MC version to work with
|
||||||
@@ -1510,6 +1499,17 @@ main() {
|
|||||||
exit $?
|
exit $?
|
||||||
fi
|
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 (( REPO_INSTALL_SWITCH )); then
|
||||||
if [[ "$ID" == "suse" ]]; then
|
if [[ "$ID" == "suse" ]]; then
|
||||||
echo "A SUSE repository is not yet available"
|
echo "A SUSE repository is not yet available"
|
||||||
|
|||||||
Reference in New Issue
Block a user