From 717b7c7910e124ecb8ef28f6fcb565c897584d94 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 13:58:16 +0800 Subject: [PATCH] up --- plugins/mysql-apt/index.py | 2 +- plugins/mysql-yum/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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):