From 35d2a0562ca28366b52bdf2032ed5bf6bae21d02 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 18 Dec 2022 03:34:31 -0500 Subject: [PATCH] Fix EPEL installation Signed-off-by: Tommy --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 08207b1..8770664 100644 --- a/install.sh +++ b/install.sh @@ -132,11 +132,11 @@ required_infos() { install_dependencies(){ output "Installing dependencies..." - if [ "$lsb_dist" == "rhel" ]; then + if [ "$lsb_dist" = "rhel" ]; then subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm - elif [ "$lsb_dist" == "centos" ]; then + elif [ "$lsb_dist" = "centos" ]; then dnf config-manager --set-enabled crb dnf install -y epel-release epel-next-release else @@ -499,11 +499,11 @@ upgrade_wings(){ firewall(){ if [ "$installoption" = "2" ]; then - if [ "$lsb_dist" != "rhel" ]; then + if [ "$lsb_dist" = "rhel" ]; then subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms rpm --import https://raw.githubusercontent.com/tommytran732/Pterodactyl-Script/master/epel9.asc dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm - elif [ "$lsb_dist" != "centos" ]; then + elif [ "$lsb_dist" = "centos" ]; then dnf config-manager --set-enabled crb dnf install -y epel-release epel-next-release else