Skip to content

Commit

Permalink
自定义下载目录
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Oct 5, 2022
1 parent 4eeb6b7 commit c63ed88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ENV UPDATE_TRACKERS=true \
CUSTOM_TRACKER_URL= \
LISTEN_PORT=6888 \
RPC_PORT=6800 \
RPC_SECRET= \
RPC_SECRET=password \
DISK_CACHE= \
IPV6_MODE= \
SPECIAL_MODE=
Expand Down
7 changes: 6 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function config_bgmi {
bgmi install
bgmi source $data_source
bgmi config ADMIN_TOKEN $admin_token
bgmi config SAVE_PATH /media/downloads
bgmi config SAVE_PATH $DOWNLOAD_DIR
else
bgmi upgrade
bash /home/bgmi-docker/BGmi/bgmi/others/crontab.sh
Expand Down Expand Up @@ -135,6 +135,11 @@ function transmission_install {
cp /home/bgmi-docker/dl_tools/transmission/transmission_settings.json /bgmi/conf/transmission/settings.json
fi

if [ ! -z "${DOWNLOAD_DIR}" ]; then
sed -i "/\"download-dir\"/c\ \"download-dir\": \"$DOWNLOAD_DIR\"," /bgmi/conf/transmission/settings.json
sed -i "/\"incomplete-dir\"/c\ \"incomplete-dir\": \"$DOWNLOAD_DIR\"," /bgmi/conf/transmission/settings.json
fi

}

# aria2设置
Expand Down

0 comments on commit c63ed88

Please sign in to comment.