mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-23 09:20:20 +08:00
epel
This commit is contained in:
parent
960e586bc0
commit
063213c8dc
@ -242,6 +242,24 @@ 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
|
||||||
|
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 --version >/dev/null 2>&1
|
||||||
dnf_status=$?
|
dnf_status=$?
|
||||||
yum --version >/dev/null 2>&1
|
yum --version >/dev/null 2>&1
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
},
|
},
|
||||||
"OS": {
|
"OS": {
|
||||||
"Fedora": [
|
"Fedora": [
|
||||||
"40",
|
"41",
|
||||||
"39"
|
"40"
|
||||||
],
|
],
|
||||||
"RedHat": [
|
"RedHat": [
|
||||||
"9",
|
"9",
|
||||||
|
Loading…
Reference in New Issue
Block a user