pull/123/head
midoks 3 years ago
parent 717b7c7910
commit d2c75e3ed8
  1. 2
      class/core/mw.py
  2. 1
      plugins/openresty/index.py

@ -92,7 +92,7 @@ def triggerTask():
def systemdCfgDir():
cfg_dir = '/usr/lib/systemd/user'
cfg_dir = '/lib/systemd/system'
if os.path.exists(cfg_dir):
return cfg_dir
return "/usr/lib/systemd/system"

@ -174,6 +174,7 @@ def initDreplace():
confReplace()
# systemd
# /usr/lib/systemd/system
systemDir = mw.systemdCfgDir()
systemService = systemDir + '/openresty.service'
systemServiceTpl = getPluginDir() + '/init.d/openresty.service.tpl'

Loading…
Cancel
Save