更新 'bin/extend.sh'

添加方法
This commit is contained in:
徐瑞 2020-03-17 09:32:11 +08:00
parent 212dd663d0
commit 1a90f2d02d

View File

@ -1,5 +1,17 @@
#!/bin/sh #!/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() { function install_gcc() {
if [ `rpm -qa|grep gcc|wc -l` == 0 ];then if [ `rpm -qa|grep gcc|wc -l` == 0 ];then
yum -y install gcc yum -y install gcc