Update index.py

pull/632/head
Mr Chen 5 months ago
parent 70507e9f65
commit 4826dbd8a9
  1. 6
      plugins/redis/index.py

@ -169,9 +169,9 @@ def initDreplace():
if os.path.exists(systemDir) and not os.path.exists(systemService):
systemServiceTpl = getPluginDir() + '/init.d/' + getPluginName() + '.service.tpl'
service_path = mw.getServerDir()
se_content = mw.readFile(systemServiceTpl)
se_content = se_content.replace('{$SERVER_PATH}', service_path)
mw.writeFile(systemService, se_content)
content = mw.readFile(systemServiceTpl)
content = content.replace('{$SERVER_PATH}', service_path)
mw.writeFile(systemService, content)
mw.execShell('systemctl daemon-reload')
return file_bin

Loading…
Cancel
Save