pull/109/head
Mr Chen 6 years ago
parent a875b4bb44
commit b644868473
  1. BIN
      plugins/samba/ico.png
  2. 9
      plugins/samba/index.html
  3. 20
      plugins/samba/index.py
  4. 15
      plugins/samba/info.json
  5. 35
      plugins/samba/install.sh
  6. 0
      plugins/samba/js/samba.js

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

@ -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":3,
"title":"SMB",
"tip":"lib",
"name":"samba",
"type":"软件",
"ps":"samba文件共享管理",
"versions":"1.0",
"shell":"install.sh",
"checks":"server/samba",
"author":"midoks",
"home":"https://www.samba.org/",
"date":"2018-12-20",
"pid":"4"
}

@ -0,0 +1,35 @@
#!/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/bt_install.pl
Install_webssh()
{
echo '正在安装脚本文件...' > $install_tmp
mkdir -p $serverPath/webssh
echo '1.0' > $serverPath/webssh/version.pl
echo '安装完成' > $install_tmp
}
Uninstall_webssh()
{
rm -rf $serverPath/webssh
echo "卸载完成" > $install_tmp
}
action=$1
if [ "${1}" == 'install' ];then
Install_webssh
else
Uninstall_webssh
fi
Loading…
Cancel
Save