mirror of https://github.com/midoks/mdserver-web
pull/109/head
parent
a001cd4651
commit
c87ebc5e64
After Width: | Height: | Size: 659 B |
@ -0,0 +1,6 @@ |
||||
<script type="text/javascript"> |
||||
if ($(".term-box #term").text() != 'W') { |
||||
layer.closeAll(); |
||||
web_shell(); |
||||
} |
||||
</script> |
@ -0,0 +1,15 @@ |
||||
{ |
||||
"id":3, |
||||
"title":"宝塔SSH终端", |
||||
"tip":"lib", |
||||
"name":"webssh", |
||||
"type":"扩展", |
||||
"ps":"完整功能的SSH客户端,仅用于连接本服务器", |
||||
"versions":"1.0", |
||||
"shell":"webssh.sh", |
||||
"checks":"/www/server/panel/plugin/webssh", |
||||
"author":"宝塔", |
||||
"home":"http://www.bt.cn/bbs", |
||||
"date":"2018-10-20", |
||||
"pid":"4" |
||||
} |
@ -0,0 +1,34 @@ |
||||
#!/bin/bash |
||||
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin |
||||
export PATH |
||||
install_tmp='/tmp/bt_install.pl' |
||||
public_file=/www/server/panel/install/public.sh |
||||
if [ ! -f $public_file ];then |
||||
wget -O $public_file http://download.bt.cn/install/public.sh -T 5; |
||||
fi |
||||
. $public_file |
||||
|
||||
download_Url=$NODE_URL |
||||
|
||||
Install_webssh() |
||||
{ |
||||
mkdir -p /www/server/panel/plugin/webssh |
||||
echo '正在安装脚本文件...' > $install_tmp |
||||
wget -O /www/server/panel/plugin/webssh/index.html $download_Url/install/plugin/webssh/index.html -T 5 |
||||
wget -O /www/server/panel/plugin/webssh/info.json $download_Url/install/plugin/webssh/info.json -T 5 |
||||
wget -O /www/server/panel/plugin/webssh/icon.png $download_Url/install/plugin/webssh/icon.png -T 5 |
||||
echo '安装完成' > $install_tmp |
||||
} |
||||
|
||||
Uninstall_webssh() |
||||
{ |
||||
rm -rf /www/server/panel/plugin/webssh |
||||
} |
||||
|
||||
|
||||
action=$1 |
||||
if [ "${1}" == 'install' ];then |
||||
Install_webssh |
||||
else |
||||
Uninstall_webssh |
||||
fi |
Loading…
Reference in new issue