mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-12-20 06:59:44 +01:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f0f18517d | ||
|
|
f505697081 | ||
|
|
d9420323ac | ||
|
|
5138709d55 | ||
|
|
f7490f4fd7 | ||
|
|
6bad2d716e | ||
|
|
72c8df500e | ||
|
|
a1b5353ea2 |
@@ -11,8 +11,12 @@ RUN \
|
|||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
jq \
|
jq \
|
||||||
|
p7zip \
|
||||||
|
tar \
|
||||||
transmission-cli \
|
transmission-cli \
|
||||||
transmission-daemon
|
transmission-daemon \
|
||||||
|
unrar \
|
||||||
|
unzip
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ The automatic update will run once a day at 3am local server time.
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **15.01.17:** Add p7zip, tar , unrar and unzip packages.
|
||||||
+ **16.10.16:** Blocklist autoupdate with optional authentication.
|
+ **16.10.16:** Blocklist autoupdate with optional authentication.
|
||||||
+ **14.10.16:** Add version layer information.
|
+ **14.10.16:** Add version layer information.
|
||||||
+ **23.09.16:** Add information about securing the webui to README..
|
+ **23.09.16:** Add information about securing the webui to README..
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json`
|
BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' /config/settings.json`
|
||||||
|
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' /config/settings.json | sed 's/\&/\&/g'`
|
||||||
|
|
||||||
rm /config/blocklists/*
|
if [ $BLOCKLIST_ENABLED == true ]; then
|
||||||
cd /config/blocklists
|
mkdir -p /tmp/blocklists
|
||||||
wget -q $BLOCKLIST_URL
|
rm -rf /tmp/blocklists/*
|
||||||
gunzip *.gz
|
cd /tmp/blocklists
|
||||||
chmod go+r *
|
wget -q -O blocklist.gz "$BLOCKLIST_URL"
|
||||||
s6-svc -h /var/run/s6/services/transmission
|
if [ $? == 0 ]; then
|
||||||
|
gunzip *.gz
|
||||||
|
if [ $? == 0 ]; then
|
||||||
|
chmod go+r *
|
||||||
|
rm -rf /config/blocklists/*
|
||||||
|
cp /tmp/blocklists/* /config/blocklists
|
||||||
|
s6-svc -h /var/run/s6/services/transmission
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user