mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## 文件保存相关 ##
|
||||
|
||||
# 文件的保存路径(可使用绝对路径或相对路径), 默认: 当前启动位置
|
||||
dir=/Users/midoks/Downloads
|
||||
dir=/tmp/aria2
|
||||
# 设置日志等级
|
||||
log-level=error
|
||||
# 日志保存路径
|
||||
|
||||
@@ -66,7 +66,9 @@ def initDreplace():
|
||||
mw.execShell('chmod +x ' + file_bin)
|
||||
|
||||
aria2_path = getServerDir() + '/aria2'
|
||||
mw.execShell('mkdir -p /tmp/download')
|
||||
if not os.path.exists(aria2_path):
|
||||
|
||||
mw.execShell('mkdir -p ' + aria2_path)
|
||||
mw.execShell('touch ' + aria2_path + '/aria2.session')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user