Update index.py

pull/202/head
midoks 3 years ago
parent f14d55fcc6
commit 92d83bb82d
  1. 2
      plugins/mariadb/index.py

@ -365,7 +365,7 @@ def initMariaDbPwd():
mw.execShell(drop_test_db)
# 删除冗余账户
hostname = mw.execShell('hostname')[0]
hostname = mw.execShell('hostname')[0].strip()
drop_hostname = serverdir + '/bin/mysql --defaults-file=' + \
myconf + ' -uroot -p' + pwd + ' -e "drop user \'\'@\'' + hostname + '\'";'
mw.execShell(drop_hostname)

Loading…
Cancel
Save