|
|
@ -42,11 +42,6 @@ def getConf(): |
|
|
|
return path |
|
|
|
return path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getConfTpl(): |
|
|
|
|
|
|
|
path = getPluginDir() + "/config/redis.conf" |
|
|
|
|
|
|
|
return path |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def getInitDTpl(): |
|
|
|
def getInitDTpl(): |
|
|
|
path = getPluginDir() + "/init.d/" + getPluginName() + ".tpl" |
|
|
|
path = getPluginDir() + "/init.d/" + getPluginName() + ".tpl" |
|
|
|
return path |
|
|
|
return path |
|
|
@ -156,6 +151,10 @@ def initDreplace(): |
|
|
|
if not os.path.exists(run_log_file): |
|
|
|
if not os.path.exists(run_log_file): |
|
|
|
mw.writeFile(run_log_file,'') |
|
|
|
mw.writeFile(run_log_file,'') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hook_file = getConf() |
|
|
|
|
|
|
|
if not os.path.exists(hook_file): |
|
|
|
|
|
|
|
mw.writeFile(hook_file,'') |
|
|
|
|
|
|
|
|
|
|
|
# initd replace |
|
|
|
# initd replace |
|
|
|
if not os.path.exists(file_bin): |
|
|
|
if not os.path.exists(file_bin): |
|
|
|
content = mw.readFile(file_tpl) |
|
|
|
content = mw.readFile(file_tpl) |
|
|
|