|
|
@ -129,10 +129,11 @@ def initDreplace(): |
|
|
|
file_bin = initD_path + '/' + getPluginName() |
|
|
|
file_bin = initD_path + '/' + getPluginName() |
|
|
|
|
|
|
|
|
|
|
|
# initd replace |
|
|
|
# initd replace |
|
|
|
content = public.readFile(file_tpl) |
|
|
|
if not os.path.exists(file_bin): |
|
|
|
content = contentReplace(content) |
|
|
|
content = public.readFile(file_tpl) |
|
|
|
public.writeFile(file_bin, content) |
|
|
|
content = contentReplace(content) |
|
|
|
public.execShell('chmod +x ' + file_bin) |
|
|
|
public.writeFile(file_bin, content) |
|
|
|
|
|
|
|
public.execShell('chmod +x ' + file_bin) |
|
|
|
|
|
|
|
|
|
|
|
# config replace |
|
|
|
# config replace |
|
|
|
conf_bin = getConf() |
|
|
|
conf_bin = getConf() |
|
|
|