Update index.py

This commit is contained in:
midoks 2021-02-04 18:59:50 +08:00
parent ac87320d8f
commit fcf5ed42da
1 changed files with 2 additions and 1 deletions

View File

@ -160,6 +160,7 @@ def initDreplace(version=''):
content = contentReplace(content)
mw.writeFile(mysql_conf, content)
mw.execShell('chown -R mysql mysql ' + getServerDir())
return file_bin
@ -450,7 +451,7 @@ def setMyDbPos():
# mw.execShell('/etc/init.d/mysqld stop')
stop()
mw.execShell('cp -rf ' + s_datadir + '/* ' + t_datadir + '/')
mw.execShell('chown -R mysql.mysql ' + t_datadir)
mw.execShell('chown -R mysql mysql ' + t_datadir)
mw.execShell('chmod -R 755 ' + t_datadir)
mw.execShell('rm -f ' + t_datadir + '/*.pid')
mw.execShell('rm -f ' + t_datadir + '/*.err')