Update index.py

pull/256/head
midoks 3 years ago
parent 985106d3cf
commit 35c9ca7e4e
  1. 8
      plugins/mysql-apt/index.py

@ -139,9 +139,9 @@ def pMysqlDb():
def initDreplace(version=''):
mysql_conf_dir = getServerDir() + '/etc'
if not os.path.exists(mysql_conf_dir):
os.mkdir(mysql_conf_dir)
my_dir = getServerDir() + '/etc'
if not os.path.exists(my_dir):
os.mkdir(my_dir)
tmp_dir = getServerDir() + '/tmp'
if not os.path.exists(tmp_dir):
@ -149,7 +149,7 @@ def initDreplace(version=''):
mw.execShell("chown -R mysql:mysql " + tmp_dir)
mw.execShell("chmod 750 " + tmp_dir)
mysql_conf = mysql_conf_dir + '/my.cnf'
mysql_conf = my_dir + '/my.cnf'
if not os.path.exists(mysql_conf):
mysql_conf_tpl = getPluginDir() + '/conf/my' + version + '.cnf'
content = mw.readFile(mysql_conf_tpl)

Loading…
Cancel
Save