From 6020282ceda79581a4af8702ef474d2d22a86ad6 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 27 Sep 2022 09:48:06 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- bin/entrypoint-transmission.sh | 4 ++++ config/transmsission/settings.json | 16 ++++++++-------- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e360ad6..058de6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV SHELL=/bin/bash \ RUN mkdir -p /bin/ /config/ /data/ && \ rm -Rf /bin/.gitkeep /config/.gitkeep /data/.gitkeep && \ - apk update -U --no-cache transmission-daemon + apk update -U --no-cache transmission-daemon COPY ./bin/. /usr/local/bin/ COPY ./config/. /etc/ diff --git a/bin/entrypoint-transmission.sh b/bin/entrypoint-transmission.sh index 878d51f..38de2c3 100755 --- a/bin/entrypoint-transmission.sh +++ b/bin/entrypoint-transmission.sh @@ -94,6 +94,10 @@ fi [ -f "/etc/.env.sh" ] && rm -Rf "/etc/.env.sh" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Additional commands +[ -d "/data/Torrents/torrents" ] || mkdir -p "/data/Torrents/torrents" +[ -d "/data/Torrents/Complete" ] || mkdir -p "/data/Torrents/Complete" +[ -d "/data/Torrents/InComplete" ] || mkdir -p "/data/Torrents/InComplete" +# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if [ -f "/config/transmission/settings.json" ]; then cp -Rf "/config/transmission/settings.json" "/etc/transmission/settings.json" else diff --git a/config/transmsission/settings.json b/config/transmsission/settings.json index 9483424..33a5c06 100644 --- a/config/transmsission/settings.json +++ b/config/transmsission/settings.json @@ -14,14 +14,16 @@ "cache-size-mb": 4, "compact-view": false, "dht-enabled": true, - "download-dir": "/data/Torrents/Complete", + "watch-dir-enabled": true, + "watch-dir": "/data/Torrents/torrents", "download-queue-enabled": true, "download-queue-size": 3, + "download-dir": "/data/Torrents/Complete", + "incomplete-dir-enabled": true, + "incomplete-dir": "/data/Torrents/InComplete", "encryption": 1, "idle-seeding-limit": 1, "idle-seeding-limit-enabled": false, - "incomplete-dir": "/data/Torrents/InComplete", - "incomplete-dir-enabled": true, "inhibit-desktop-hibernation": false, "lpd-enabled": true, "main-window-height": 500, @@ -83,15 +85,13 @@ "start-added-torrents": true, "statusbar-stats": "total-ratio", "torrent-added-notification-enabled": true, - "torrent-complete-notification-enabled": true, - "torrent-complete-sound-command": "canberra-gtk-play -i complete-download -d 'transmission torrent downloaded'", + "torrent-complete-notification-enabled": false, + "torrent-complete-sound-command": "", "torrent-complete-sound-enabled": true, "trash-can-enabled": true, "trash-original-torrent-files": false, "umask": 2, "upload-slots-per-torrent": 14, "user-has-given-informed-consent": true, - "utp-enabled": true, - "watch-dir": "/data/Torrents/torrents", - "watch-dir-enabled": true + "utp-enabled": true }