install bc by special os

This commit is contained in:
qiaofeng1227 2023-06-16 14:09:54 +08:00
parent 7d3dc03bf1
commit 596deb4c48

View file

@ -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
} }