|
|
@ -32,6 +32,11 @@ def getInitDFile(): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getConf(): |
|
|
|
def getConf(): |
|
|
|
|
|
|
|
path = getServerDir() + "/redis.conf" |
|
|
|
|
|
|
|
return path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getConfTpl(): |
|
|
|
path = getPluginDir() + "/config/redis.conf" |
|
|
|
path = getPluginDir() + "/config/redis.conf" |
|
|
|
return path |
|
|
|
return path |
|
|
|
|
|
|
|
|
|
|
@ -84,7 +89,7 @@ def initDreplace(): |
|
|
|
mw.execShell('chmod +x ' + file_bin) |
|
|
|
mw.execShell('chmod +x ' + file_bin) |
|
|
|
|
|
|
|
|
|
|
|
# config replace |
|
|
|
# config replace |
|
|
|
conf_content = mw.readFile(getConf()) |
|
|
|
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(getServerDir() + '/redis.conf', conf_content) |
|
|
|
mw.writeFile(getServerDir() + '/redis.conf', conf_content) |
|
|
|
|
|
|
|
|
|
|
|