mirror of https://github.com/midoks/mdserver-web
parent
a12baf466e
commit
ca9c456fd7
After Width: | Height: | Size: 777 B |
@ -0,0 +1,9 @@ |
||||
<script type="text/javascript"> |
||||
resetPluginWinWidth(480); |
||||
// $.getScript( "/plugins/file?name=webssh&f=js/webssh.js", function() { |
||||
//}); |
||||
if ($(".term-box #term").text() != 'W') { |
||||
layer.closeAll(); |
||||
webShell(); |
||||
} |
||||
</script> |
@ -0,0 +1,20 @@ |
||||
# coding: utf-8 |
||||
|
||||
import time |
||||
import random |
||||
import os |
||||
import json |
||||
import re |
||||
import sys |
||||
|
||||
sys.path.append(os.getcwd() + "/class/core") |
||||
import public |
||||
|
||||
|
||||
def status(): |
||||
return 'start' |
||||
|
||||
if __name__ == "__main__": |
||||
func = sys.argv[1] |
||||
if func == 'status': |
||||
print status() |
@ -0,0 +1,15 @@ |
||||
{ |
||||
"id":4, |
||||
"title":"BBR[DEV]", |
||||
"tip":"soft", |
||||
"name":"bbr", |
||||
"type":"软件", |
||||
"ps":"BBR是Google提出的一种新型拥塞控制算法,可以使Linux服务器显著地提高吞吐量和减少TCP连接的延迟", |
||||
"versions":"1.0", |
||||
"shell":"install.sh", |
||||
"checks":"server/bbr", |
||||
"author":"Google", |
||||
"home":"https://github.com/google/bbr", |
||||
"date":"2019-03-29", |
||||
"pid":"4" |
||||
} |
@ -0,0 +1,34 @@ |
||||
#!/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") |
||||
|
||||
install_tmp=${rootPath}/tmp/mw_install.pl |
||||
|
||||
Install_bbr() |
||||
{ |
||||
echo '正在安装脚本文件...' > $install_tmp |
||||
|
||||
|
||||
mkdir -p $serverPath/bbr |
||||
echo '1.0' > $serverPath/bbr/version.pl |
||||
echo '安装完成' > $install_tmp |
||||
} |
||||
|
||||
Uninstall_bbr() |
||||
{ |
||||
rm -rf $serverPath/bbr |
||||
echo "卸载完成" > $install_tmp |
||||
} |
||||
|
||||
action=$1 |
||||
if [ "${1}" == 'install' ];then |
||||
Install_bbr |
||||
else |
||||
Uninstall_bbr |
||||
fi |
Loading…
Reference in new issue