mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-28 10:49:59 +02:00
25 lines
505 B
Bash
25 lines
505 B
Bash
#!/bin/bash
|
|
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 -O lib.sh $serverUrl/$mtype/lib.sh
|
|
fi
|
|
|
|
libNull=`cat lib.sh`
|
|
if [ "$libNull" == '' ];then
|
|
wget -O lib.sh $serverUrl/$mtype/lib.sh
|
|
fi
|
|
|
|
wget -O $name.sh $serverUrl/$mtype/$name.sh
|
|
if [ "$actionType" == 'install' ];then
|
|
bash lib.sh
|
|
fi
|
|
bash $name.sh $actionType $version
|