test: add checkpackages scritps
This commit is contained in:
parent
6b46ac5f54
commit
df7daebf42
|
@ -1,32 +1,5 @@
|
||||||
#!/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
|
||||||
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
|
||||||
cd taosTools-2.1.2 && bash install-taostools.sh
|
cd taosTools-2.1.2 && bash install-taostools.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
# }
|
|
||||||
|
|
||||||
# installPkgAndCheckFile
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue