diff --git a/packaging/testpackage.sh b/packaging/testpackage.sh index 148aabc091..669b0c9e1e 100755 --- a/packaging/testpackage.sh +++ b/packaging/testpackage.sh @@ -1,32 +1,5 @@ #!/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 version=$2 @@ -57,8 +30,7 @@ else if command -v apt ;then apt-get install ${comd} -y elif command -v yum ;then - yum install ${comd} - y - else + yum -y install ${comd} echo "you should install ${comd} manually" fi fi @@ -155,8 +127,5 @@ elif [[ ${packgeName} =~ "tar" ]];then cd taosTools-2.1.2 && bash install-taostools.sh fi -fi -# } - -# installPkgAndCheckFile +fi