Update index.py

pull/597/head
Mr Chen 11 months ago
parent 87a18b54ad
commit e1ea19b54d
  1. 8
      plugins/mysql-yum/index.py

@ -245,11 +245,11 @@ def initDreplace(version=''):
systemDir = mw.systemdCfgDir()
systemService = systemDir + '/mysql-yum.service'
systemServiceTpl = getPluginDir() + '/init.d/mysql' + version + '.service.tpl'
if os.path.exists(systemDir) and not os.path.exists(systemService):
# if os.path.exists(systemDir) and not os.path.exists(systemService):
service_path = mw.getServerDir()
se_content = mw.readFile(systemServiceTpl)
se_content = se_content.replace('{$SERVER_PATH}', service_path)
mw.writeFile(systemService, se_content)
content = mw.readFile(systemServiceTpl)
content = content.replace('{$SERVER_PATH}', service_path)
mw.writeFile(systemService, content)
mw.execShell('systemctl daemon-reload')
if mw.getOs() != 'darwin':

Loading…
Cancel
Save