samba init

This commit is contained in:
Mr Chen
2019-03-04 11:04:10 +08:00
parent 4459d296eb
commit 1fa7fbda45
6 changed files with 79 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+9
View File
@@ -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>
+20
View File
@@ -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()
+15
View File
@@ -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"
}
+35
View File
@@ -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
View File