From 063213c8dc3e3cfa8f13a16d57d927a74871bf6a Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Mon, 13 Jan 2025 08:38:51 +0800 Subject: [PATCH] epel --- install/install.sh | 18 ++++++++++++++++++ version.json | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/install/install.sh b/install/install.sh index 86ab0280..28d2da34 100644 --- a/install/install.sh +++ b/install/install.sh @@ -242,6 +242,24 @@ 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 + sudo yum install -y "$repo_tools_yum" >/dev/null + if [ $? -ne 0 ]; then + exit 1 + fi + elif [ "$ID" = "amzn" ]; then + sudo amazon-linux-extras install epel -y >/dev/null + if [ $? -ne 0 ]; then + exit 1 + fi + fi + dnf --version >/dev/null 2>&1 dnf_status=$? yum --version >/dev/null 2>&1 diff --git a/version.json b/version.json index b6b7e2c5..7490d805 100644 --- a/version.json +++ b/version.json @@ -11,8 +11,8 @@ }, "OS": { "Fedora": [ - "40", - "39" + "41", + "40" ], "RedHat": [ "9",