|
|
@ -101,6 +101,9 @@ def initDreplace(): |
|
|
|
if not os.path.exists(dst_conf_init): |
|
|
|
if not os.path.exists(dst_conf_init): |
|
|
|
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) |
|
|
|
|
|
|
|
conf_content = conf_content.replace( |
|
|
|
|
|
|
|
'{$REDIS_PASS}', mw.getRandomString(10)) |
|
|
|
|
|
|
|
|
|
|
|
mw.writeFile(dst_conf, conf_content) |
|
|
|
mw.writeFile(dst_conf, conf_content) |
|
|
|
mw.writeFile(dst_conf_init, 'ok') |
|
|
|
mw.writeFile(dst_conf_init, 'ok') |
|
|
|
|
|
|
|
|
|
|
|