Update index.py

pull/624/head
Mr Chen 7 months ago
parent 0ab0a918c3
commit f71973b10a
  1. 5
      plugins/pgadmin/index.py

@ -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():

Loading…
Cancel
Save