This commit is contained in:
midoks
2022-11-08 19:02:23 +08:00
parent c629a7e682
commit aaf5ed2cf4
3 changed files with 64 additions and 1 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ def initDreplace(version=''):
# systemd
systemDir = mw.systemdCfgDir()
systemService = systemDir + '/mysql-yum.service'
systemServiceTpl = getPluginDir() + '/init.d/mysql.service.tpl'
systemServiceTpl = getPluginDir() + '/init.d/mysql' + version + '.service.tpl'
if os.path.exists(systemDir) and not os.path.exists(systemService):
service_path = mw.getServerDir()
se_content = mw.readFile(systemServiceTpl)