mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 01:00:20 +08:00
epel
This commit is contained in:
parent
543101f23d
commit
da487ea180
@ -242,13 +242,7 @@ install_tools(){
|
|||||||
echo_prefix_tools=$'\n[Tools] - '
|
echo_prefix_tools=$'\n[Tools] - '
|
||||||
echo "$echo_prefix_tools Starting install necessary tool..."
|
echo "$echo_prefix_tools Starting install necessary tool..."
|
||||||
|
|
||||||
if [ "$ID" = "rhel" ] || [ "$ID" = "ol" ]; then
|
if [ "$ID" = "centos" ] || [ "$ID" = "rocky" ]; 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
|
sudo yum install -y "$repo_tools_yum" >/dev/null
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user