mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<div class="bt-w-main">
|
||||
<div class="bt-w-menu">
|
||||
<p class="bgw" onclick="pluginService('sys-opt');">服务</p>
|
||||
<p onclick="pluginConfig('sys-opt','','conf');">系统配置</p>
|
||||
<!-- <p onclick="pluginLogs('system-optimization','','run_log');">日志</p> -->
|
||||
<!-- <p onclick="pRead()">说明</p> -->
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,13 @@ import public
|
||||
def status():
|
||||
return 'start'
|
||||
|
||||
|
||||
def sysConf():
|
||||
return '/etc/sysctl.conf'
|
||||
|
||||
if __name__ == "__main__":
|
||||
func = sys.argv[1]
|
||||
if func == 'status':
|
||||
print status()
|
||||
elif func == 'conf':
|
||||
print sysConf()
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
"id":3,
|
||||
"title":"系统优化",
|
||||
"tip":"soft",
|
||||
"name":"system-optimization",
|
||||
"name":"sys-opt",
|
||||
"type":"扩展",
|
||||
"ps":"仅Linux系统优化",
|
||||
"versions":"1.0",
|
||||
"shell":"install.sh",
|
||||
"checks":"server/system-optimization",
|
||||
"path": "server/system-optimization",
|
||||
"checks":"server/sys-opt",
|
||||
"path": "server/sys-opt",
|
||||
"author":"midoks",
|
||||
"home":"",
|
||||
"date":"2018-12-20",
|
||||
|
||||
Reference in New Issue
Block a user