mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
Update index.py
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user