mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -129,13 +129,15 @@ def cleanLog():
|
||||
print(i)
|
||||
mw.execShell(i)
|
||||
|
||||
# 常用日志
|
||||
clogcom = [
|
||||
"/var/log/messages",
|
||||
"/var/log/btmp",
|
||||
"/var/log/wtmp",
|
||||
]
|
||||
|
||||
for i in clogcom:
|
||||
print(i)
|
||||
mw.execShell("echo \"\" > " + i)
|
||||
if os.path.exists(i)
|
||||
mw.execShell("echo \"\" > " + i)
|
||||
|
||||
l = os.listdir(rootDir)
|
||||
for x in range(len(l)):
|
||||
|
||||
Reference in New Issue
Block a user