mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -69,6 +69,12 @@ def checkArgs(data, ck=[]):
|
||||
return (True, mw.returnJson(True, 'ok'))
|
||||
|
||||
|
||||
def getOs():
|
||||
data = {}
|
||||
data['os'] = mw.getOs()
|
||||
data['auth'] = True
|
||||
return mw.getJson(data)
|
||||
|
||||
def getConf():
|
||||
path = getServerDir() + "/Caddyfile"
|
||||
return path
|
||||
@@ -156,9 +162,6 @@ def start():
|
||||
|
||||
def stop():
|
||||
r = caddyOp('stop')
|
||||
pid_file = getPidFile()
|
||||
if os.path.exists(pid_file):
|
||||
os.remove(pid_file)
|
||||
return r
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user