mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
install.sh
This commit is contained in:
parent
0c1fc84d94
commit
1bb1f20bbf
1 changed files with 12 additions and 3 deletions
|
@ -143,11 +143,20 @@ install_tools(){
|
|||
|
||||
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
|
||||
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"
|
||||
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
|
||||
sudo amazon-linux-extras install epel -y >/dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
dnf --version >/dev/null 2>&1
|
||||
|
|
Loading…
Reference in a new issue