Fix epel install
This commit is contained in:
22
installJRMC
22
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
|
||||
|
||||
Reference in New Issue
Block a user