Update index.py

This commit is contained in:
midoks 2022-06-19 18:09:32 +08:00
parent 91ea2d8dc9
commit 17ee5aa4a8
1 changed files with 2 additions and 2 deletions

View File

@ -418,7 +418,7 @@ def myOp(version, method):
if initData == 0:
initMysqlPwd()
data = mw.execShell('systemctl ' + method + ' mysql')
mw.execShell('systemctl ' + method + ' mysql')
return 'ok'
except Exception as e:
return str(e)
@ -452,7 +452,7 @@ def my8cmd(version, method):
time.sleep(3)
my8cmd(version, method)
else:
data = mw.execShell('systemctl ' + method + ' mysql')
mw.execShell('systemctl ' + method + ' mysql')
return 'ok'
except Exception as e: