提交 df7daebf 编写于 作者: haoranc's avatar haoranc

test: add checkpackages scritps

上级 6b46ac5f
#!/bin/sh #!/bin/sh
# # ============================= get input parameters =================================================
# # install.sh -v [server | client] -e [yes | no] -i [systemd | service | ...]
# # set parameters by default value
# interactiveFqdn=yes # [yes | no]
# verType=server # [server | client]
# initType=systemd # [systemd | service | ...]
# while getopts "hv:d:" arg
# do
# case $arg in
# d)
# #echo "interactiveFqdn=$OPTARG"
# script_dir=$( echo $OPTARG )
# ;;
# h)
# echo "Usage: `basename $0` -d scripy_path"
# exit 0
# ;;
# ?) #unknow option
# echo "unkonw argument"
# exit 1
# ;;
# esac
# done
# echo "Download package"
packgeName=$1 packgeName=$1
version=$2 version=$2
...@@ -57,8 +30,7 @@ else ...@@ -57,8 +30,7 @@ else
if command -v apt ;then if command -v apt ;then
apt-get install ${comd} -y apt-get install ${comd} -y
elif command -v yum ;then elif command -v yum ;then
yum install ${comd} - y yum -y install ${comd}
else
echo "you should install ${comd} manually" echo "you should install ${comd} manually"
fi fi
fi fi
...@@ -155,8 +127,5 @@ elif [[ ${packgeName} =~ "tar" ]];then ...@@ -155,8 +127,5 @@ elif [[ ${packgeName} =~ "tar" ]];then
cd taosTools-2.1.2 && bash install-taostools.sh cd taosTools-2.1.2 && bash install-taostools.sh
fi fi
fi fi
# }
# installPkgAndCheckFile
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册