Update index.py

This commit is contained in:
Mr Chen
2024-10-01 15:52:28 +08:00
parent 0ab0a918c3
commit f71973b10a
+2 -3
View File
@@ -106,7 +106,7 @@ def initCfg():
cfg = getServerDir() + "/cfg.json"
if not os.path.exists(cfg):
data = {}
data['port'] = '888'
data['port'] = '5051'
data['choose'] = 'mysql'
data['path'] = ''
data['username'] = 'admin'
@@ -233,10 +233,9 @@ def pgOp(method):
return 'ok'
return data[1]
data = mw.execShell('systemctl ' + method+ '' + getPluginName())
data = mw.execShell('systemctl ' + method+ ' ' + getPluginName())
if data[1] == '':
return 'ok'
return data[1]
def status():