mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:09:27 +08:00
init
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
Executable
+20
@@ -0,0 +1,20 @@
|
||||
<div class="bt-form">
|
||||
<div class="bt-w-main">
|
||||
<div class="bt-w-menu">
|
||||
<p class="bgw" onclick="pluginService('system-optimization');">服务</p>
|
||||
<!-- <p onclick="pluginLogs('system-optimization','','run_log');">日志</p> -->
|
||||
<!-- <p onclick="pRead()">说明</p> -->
|
||||
</div>
|
||||
<div class="bt-w-con pd15">
|
||||
<div class="soft-man-con"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
resetPluginWinWidth(700);
|
||||
$.getScript( "/plugins/file?name=system-optimization&f=js/system-optimization.js",
|
||||
function() {
|
||||
pluginService('system-optimization');
|
||||
});
|
||||
</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
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"id":3,
|
||||
"title":"系统优化",
|
||||
"tip":"soft",
|
||||
"name":"system-optimization",
|
||||
"type":"扩展",
|
||||
"ps":"仅Linux系统优化",
|
||||
"versions":"1.0",
|
||||
"shell":"install.sh",
|
||||
"checks":"server/system-optimization",
|
||||
"path": "server/system-optimization",
|
||||
"author":"midoks",
|
||||
"home":"",
|
||||
"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/mw_install.pl
|
||||
|
||||
|
||||
Install_sysopt()
|
||||
{
|
||||
echo '正在安装脚本文件...' > $install_tmp
|
||||
mkdir -p $serverPath/system-optimization
|
||||
echo '1.0' > $serverPath/system-optimization/version.pl
|
||||
echo '安装完成' > $install_tmp
|
||||
|
||||
}
|
||||
|
||||
Uninstall_sysopt()
|
||||
{
|
||||
rm -rf $serverPath/system-optimization
|
||||
echo "卸载完成" > $install_tmp
|
||||
}
|
||||
|
||||
action=$1
|
||||
if [ "${1}" == 'install' ];then
|
||||
Install_sysopt
|
||||
else
|
||||
Uninstall_sysopt
|
||||
fi
|
||||
Reference in New Issue
Block a user