Update index.py

pull/109/head
midoks 3 years ago
parent 2eb12a4c88
commit 7c8c4d7304
  1. 5
      plugins/mysql/index.py

@ -378,8 +378,9 @@ def my8cmd(version, method):
if method == "stop": if method == "stop":
mw.execShell(cmd) mw.execShell(cmd)
return "ok" return "ok"
subprocess.run(cmd, stdout=subprocess.PIPE, shell=True, sub = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True,
bufsize=4096, stderr=subprocess.PIPE, timeout=5) bufsize=4096, stderr=subprocess.PIPE)
sub.wait(5)
return 'ok' return 'ok'
except Exception as e: except Exception as e:
print(e) print(e)

Loading…
Cancel
Save