mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:19:26 +08:00
Update index.py
This commit is contained in:
@@ -85,15 +85,11 @@ def status():
|
||||
|
||||
|
||||
def start():
|
||||
|
||||
file = initDreplace()
|
||||
subprocess.Popen(file + ' start',
|
||||
stdout=subprocess.PIPE, shell=True)
|
||||
return 'ok'
|
||||
# data = mw.execShell(file + ' start')
|
||||
# if data[1] == '':
|
||||
# return 'ok'
|
||||
# return data[1]
|
||||
data = mw.execShell(file + ' start')
|
||||
if data[1] == '':
|
||||
return 'ok'
|
||||
return data[1]
|
||||
|
||||
|
||||
def stop():
|
||||
|
||||
Reference in New Issue
Block a user