diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 8be615cc4..dbb203677 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -147,7 +147,7 @@ def initDreplace(version=''): mw.writeFile(mysql_conf, content) # systemd - systemDir = '/usr/lib/systemd/system' + systemDir = mw.systemdCfgDir() systemService = systemDir + '/mysql-apt.service' systemServiceTpl = getPluginDir() + '/init.d/mysql.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService): diff --git a/plugins/mysql-yum/index.py b/plugins/mysql-yum/index.py index ac8c02799..47d090566 100755 --- a/plugins/mysql-yum/index.py +++ b/plugins/mysql-yum/index.py @@ -152,7 +152,7 @@ def initDreplace(version=''): mw.writeFile(mysql_conf, content) # systemd - systemDir = '/usr/lib/systemd/system' + systemDir = mw.systemdCfgDir() systemService = systemDir + '/mysql-yum.service' systemServiceTpl = getPluginDir() + '/init.d/mysql.service.tpl' if os.path.exists(systemDir) and not os.path.exists(systemService):