Update index.py

pull/109/head
midoks 3 years ago
parent 88123c575d
commit bf73b25f4f
  1. 7
      plugins/redis/index.py

@ -91,10 +91,9 @@ def initDreplace():
# config replace # config replace
dst_conf = getServerDir() + '/redis.conf' dst_conf = getServerDir() + '/redis.conf'
if not os.path.exists(dst_conf): conf_content = mw.readFile(getConfTpl())
conf_content = mw.readFile(getConfTpl()) conf_content = conf_content.replace('{$SERVER_PATH}', service_path)
conf_content = conf_content.replace('{$SERVER_PATH}', service_path) mw.writeFile(dst_conf, conf_content)
mw.writeFile(dst_conf, conf_content)
# systemd # systemd
systemDir = '/lib/systemd/system' systemDir = '/lib/systemd/system'

Loading…
Cancel
Save