From da487ea1806f2ce69616a8d1945e6b690e323fdb Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 14 Jan 2025 11:26:49 +0800 Subject: [PATCH] epel --- install/install.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install/install.sh b/install/install.sh index 2817b1f9..56bcb7f5 100644 --- a/install/install.sh +++ b/install/install.sh @@ -242,13 +242,7 @@ install_tools(){ echo_prefix_tools=$'\n[Tools] - ' echo "$echo_prefix_tools Starting install necessary tool..." - if [ "$ID" = "rhel" ] || [ "$ID" = "ol" ]; then - RHEL_VERSION=${VERSION_ID%%.*} - sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${RHEL_VERSION}.noarch.rpm >/dev/null - if [ $? -ne 0 ]; then - exit 1 - fi - elif [ "$ID" = "centos" ] || [ "$ID" = "rocky" ]; then + if [ "$ID" = "centos" ] || [ "$ID" = "rocky" ]; then sudo yum install -y "$repo_tools_yum" >/dev/null if [ $? -ne 0 ]; then exit 1