Fix epel install

This commit is contained in:
2022-01-14 00:57:53 -05:00
parent 7a8b1fb2aa
commit 48d23b4967

View File

@@ -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