Skip to content

Commit

Permalink
epel
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Jan 14, 2025
1 parent 543101f commit da487ea
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da487ea

Please sign in to comment.