瀏覽代碼

install bc by special os

qiaofeng1227 2 年之前
父節點
當前提交
596deb4c48
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      install/install.sh

+ 2 - 2
install/install.sh

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