Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/xui/install.sh

35 lines
646 B

5 months ago
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sysArch=`arch`
sysName=`uname`
# cd /www/server/mdserver-web && python3 plugins/mtproxy/index.py url
# cd /www/server/mdserver-web/plugins/xui && /bin/bash install.sh install 1.0
Install_app()
{
5 months ago
bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)
5 months ago
echo '安装完成'
}
Uninstall_app()
{
echo '卸载完成'
}
action=$1
if [ "${1}" == 'install' ];then
Install_app $2
else
Uninstall_app $2
fi