|
|
@ -59,11 +59,11 @@ def initDreplace(): |
|
|
|
if not os.path.exists(initD_path): |
|
|
|
if not os.path.exists(initD_path): |
|
|
|
os.mkdir(initD_path) |
|
|
|
os.mkdir(initD_path) |
|
|
|
|
|
|
|
|
|
|
|
# initd replace |
|
|
|
# initd replace |
|
|
|
content = mw.readFile(file_tpl) |
|
|
|
content = mw.readFile(file_tpl) |
|
|
|
content = content.replace('{$SERVER_PATH}', service_path) |
|
|
|
content = content.replace('{$SERVER_PATH}', service_path) |
|
|
|
mw.writeFile(file_bin, content) |
|
|
|
mw.writeFile(file_bin, content) |
|
|
|
mw.execShell('chmod +x ' + file_bin) |
|
|
|
mw.execShell('chmod +x ' + file_bin) |
|
|
|
|
|
|
|
|
|
|
|
aria2_path = getServerDir() + '/aria2' |
|
|
|
aria2_path = getServerDir() + '/aria2' |
|
|
|
mw.execShell('mkdir -p /tmp/download') |
|
|
|
mw.execShell('mkdir -p /tmp/download') |
|
|
|