mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-12-17 21:49: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 \
|
||||
curl \
|
||||
jq \
|
||||
p7zip \
|
||||
tar \
|
||||
transmission-cli \
|
||||
transmission-daemon
|
||||
transmission-daemon \
|
||||
unrar \
|
||||
unzip
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
|
||||
@@ -104,6 +104,7 @@ The automatic update will run once a day at 3am local server time.
|
||||
|
||||
## Versions
|
||||
|
||||
+ **15.01.17:** Add p7zip, tar , unrar and unzip packages.
|
||||
+ **16.10.16:** Blocklist autoupdate with optional authentication.
|
||||
+ **14.10.16:** Add version layer information.
|
||||
+ **23.09.16:** Add information about securing the webui to README..
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
#!/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/*
|
||||
cd /config/blocklists
|
||||
wget -q $BLOCKLIST_URL
|
||||
gunzip *.gz
|
||||
chmod go+r *
|
||||
s6-svc -h /var/run/s6/services/transmission
|
||||
if [ $BLOCKLIST_ENABLED == true ]; then
|
||||
mkdir -p /tmp/blocklists
|
||||
rm -rf /tmp/blocklists/*
|
||||
cd /tmp/blocklists
|
||||
wget -q -O blocklist.gz "$BLOCKLIST_URL"
|
||||
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