From 1a90f2d02d768adb382ffc707d081a80941988ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E7=91=9E?= <807495056@qq.com> Date: Tue, 17 Mar 2020 09:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'bin/extend.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加方法 --- bin/extend.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/extend.sh b/bin/extend.sh index 8729f87..8ada4e1 100644 --- a/bin/extend.sh +++ b/bin/extend.sh @@ -1,5 +1,17 @@ #!/bin/sh +function install_tools() { + if [ `rpm -qa|grep wget|wc -l` == 0 ];then + yum -y install wget + fi + if [ `rpm -qa|grep bzip2|wc -l` == 0 ];then + yum -y install bzip2 + fi + if [ `rpm -qa|grep unzip|wc -l` == 0 ];then + yum -y install unzip + fi +} + function install_gcc() { if [ `rpm -qa|grep gcc|wc -l` == 0 ];then yum -y install gcc