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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user