From 6c4f69e2c78f11b6ec7a4cb6a07dfbe85bd866e5 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 10 Nov 2022 20:50:01 +0800 Subject: [PATCH] Update common.py --- class/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/core/common.py b/class/core/common.py index 91ac17c89..973c2179f 100755 --- a/class/core/common.py +++ b/class/core/common.py @@ -59,7 +59,7 @@ def initInitD(): # systemctl sysCfgDir = mw.systemdCfgDir() - if os.path.exists(sysCfgDir) and mw.getOs() == 'centos' and mw.getOsID() == '9': + if os.path.exists(sysCfgDir) and mw.getOsName() == 'centos' and mw.getOsID() == '9': systemd_mw = sysCfgDir + '/mw.service' systemd_mw_task = sysCfgDir + '/mw-task.service'