install bc by special os
This commit is contained in:
parent
7d3dc03bf1
commit
596deb4c48
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ echo "Prepare to install Tools ..."
|
||||||
|
|
||||||
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
|
if [ "$os_type" == 'CentOS' ] || [ "$os_type" == 'CentOS Stream' ] || [ "$os_type" == 'Fedora' ] || [ "$os_type" == 'OracleLinux' ] || [ "$os_type" == 'Redhat' ];then
|
||||||
sudo yum update -y 1>/dev/null 2>&1
|
sudo yum update -y 1>/dev/null 2>&1
|
||||||
sudo yum install git curl wget yum-utils jq firewalld -y 1>/dev/null 2>&1
|
sudo yum install git curl wget yum-utils jq firewalld bc -y 1>/dev/null 2>&1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ if [ "$os_type" == 'Ubuntu' ] || [ "$os_type" == 'Debian' ] ;then
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
sudo apt update -y 1>/dev/null 2>&1
|
sudo apt update -y 1>/dev/null 2>&1
|
||||||
sudo apt install git curl wget jq firewalld -y 1>/dev/null 2>&1
|
sudo apt install git curl wget jq firewalld bc -y 1>/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue