Update index.py

This commit is contained in:
midoks 2022-06-19 16:00:04 +08:00
parent 88123c575d
commit bf73b25f4f
1 changed files with 3 additions and 4 deletions

View File

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