This commit is contained in:
midoks 2019-12-07 01:02:25 +08:00
parent 87d3ab73fc
commit 52b48888bc
3 changed files with 18 additions and 2 deletions

View File

@ -3,8 +3,8 @@
<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> -->
<p onclick="pluginLogs('sys-opt','','sec_run_log', 20);">安全日志</p>
<p onclick="pRead()">说明</p>
</div>
<div class="bt-w-con pd15">
<div class="soft-man-con"></div>

View File

@ -38,6 +38,9 @@ def reload():
def sysConf():
return '/etc/sysctl.conf'
def secRunLog():
return '/var/log/secure'
if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
@ -52,3 +55,7 @@ if __name__ == "__main__":
print reload()
elif func == 'conf':
print sysConf()
elif func == 'sec_run_log':
print secRunLog()
else:
print 'err'

View File

@ -0,0 +1,9 @@
function pRead(){
var readme = '<ul class="help-info-text c7">';
readme += '<li>修改后,点击重启按钮</li>';
readme += '</ul>';
$('.soft-man-con').html(readme);
}