Update index.py

This commit is contained in:
dami
2026-04-11 15:04:56 +08:00
parent f766039139
commit 9789ab6e37
+6 -3
View File
@@ -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