Merge pull request #16486 from taosdata/test/chr/TD-14699

test: add checkpackages scritps
This commit is contained in:
Hui Li 2022-08-29 16:26:54 +08:00 committed by GitHub
commit 754714d786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 33 deletions

View File

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