| PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
| export PATH | |
| mtype=$1 | |
| actionType=$2 | |
| name=$3 | |
| version=$4 | |
| . /www/server/panel/install/public.sh | |
| serverUrl=$NODE_URL/install | |
| if [ ! -f 'lib.sh' ];then | |
| wget --no-check-certificate -O lib.sh $serverUrl/$mtype/lib.sh | |
| fi | |
| libNull=`cat lib.sh` | |
| if [ "$libNull" == '' ];then | |
| wget --no-check-certificate -O lib.sh $serverUrl/$mtype/lib.sh | |
| fi | |
| wget --no-check-certificate -O $name.sh $serverUrl/$mtype/$name.sh | |
| if [ "$actionType" == 'install' ];then | |
| bash lib.sh | |
| fi | |
| bash $name.sh $actionType $version | |
| echo '|-Successify --- 命令已执行! ---' | |