mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-23 01:54:01 +08:00
samba init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Executable
+9
@@ -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>
|
||||
Executable
+20
@@ -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()
|
||||
Executable
+15
@@ -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"
|
||||
}
|
||||
Executable
+35
@@ -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
|
||||
Executable
Reference in New Issue
Block a user