Comments (2)
自己找到位置了, 进入容器后打开 /var/run/s6/etc/cont-init.d/58-permissions
内容为
. /etc/init-base
chown -R p3terx:p3terx ${DOWNLOAD_DIR}
chown -R p3terx:p3terx ${ARIA2_CONF_DIR}
if [[ -z ${PUID} && -z ${PGID} ]] || [[ ${PUID} = 65534 && ${PGID} = 65534 ]]; then
echo -e "${WARN} Ignore permission settings."
chmod -v 777 ${DOWNLOAD_DIR}
chmod -vR 777 ${ARIA2_CONF_DIR}
else
chmod -v u=rwx ${DOWNLOAD_DIR} #注释这一行
chmod -v 600 ${ARIA2_CONF_DIR}/*
chmod -v 755 ${SCRIPT_DIR}
chmod -v 700 ${SCRIPT_DIR}/*
fi
如果配置了puid 注释else下面的一行
# chmod -v u=rwx ${DOWNLOAD_DIR}
这样就可以不会每次更新下载文件夹的权限了(我觉得第一次设置过权限后面就不用设置了)
from aria2-pro-docker.
你好 请问你知道怎么更改默认下载目录吗 每次重启之后就会还原成 /downloads @fuxin052
from aria2-pro-docker.
Related Issues (20)
- 关于docker部署问题
- 无法通过 ws:// 链接
- BT下载出现请升级比特彗星 HOT 1
- Request Entity Too Large HOT 1
- errNum=13 errorCode=16 HOT 1
- Aria 2 disconnected HOT 2
- Can not connect to Aria2-pro using docker HOT 1
- 下载过程中周期性会出现断联重启
- Issue with ariang once behind a proxy
- Please, consider update the aria2 version inside the image!
- not an issue youtube-dl
- FTP是指暴露FTP服务还是配置FTP下载的用户名和密码?
- 关于最近一直上传失败的问题
- ariang can not connect to aria2 by using name in docker-compose HOT 1
- 下载过程会中断
- Suggestion: 如果BT任务未成功启动,不要自动删除种子文件 HOT 1
- aria2 has been updated to version 1.37.0
- docker启动后自动退出提示No files to download HOT 3
- 最近拉取镜像总是提示找不到
- 处理器是多核处理器,但是,aria2c总是只占用一个cpu核心
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aria2-pro-docker.