Update index.py

pull/463/head
midoks 2 years ago
parent 73ff1c664e
commit 82fc1a3609
  1. 4
      plugins/redis/index.py

@ -117,9 +117,9 @@ def initDreplace():
# systemd # systemd
systemDir = mw.systemdCfgDir() systemDir = mw.systemdCfgDir()
systemService = systemDir + '/redis.service' systemService = systemDir + '/' + getPluginName() + '.service'
if os.path.exists(systemDir) and not os.path.exists(systemService): if os.path.exists(systemDir) and not os.path.exists(systemService):
systemServiceTpl = getPluginDir() + '/init.d/redis.service.tpl' systemServiceTpl = getPluginDir() + '/init.d/' + getPluginName() + '.service.tpl'
service_path = mw.getServerDir() service_path = mw.getServerDir()
se_content = mw.readFile(systemServiceTpl) se_content = mw.readFile(systemServiceTpl)
se_content = se_content.replace('{$SERVER_PATH}', service_path) se_content = se_content.replace('{$SERVER_PATH}', service_path)

Loading…
Cancel
Save