Update index.py

This commit is contained in:
midoks 2022-07-15 13:51:10 +08:00
parent 6c5077b3db
commit d16b221ee2
1 changed files with 2 additions and 2 deletions

View File

@ -321,11 +321,11 @@ def initMysqlPwd():
cmd_pass = cmd_pass + "flush privileges;\""
data = mw.execShell(cmd_pass)
if data[1].find("ERROR"):
# print(data)
if data[1].find("ERROR") != -1:
print("init mariadb password fail:" + data[1])
exit(1)
# print(data)
pSqliteDb('config').where('id=?', (1,)).save('mysql_root', (pwd,))
return True