Compare commits

...

8 Commits
31 ... 44

Author SHA1 Message Date
Neil
1f0f18517d Merge pull request #23 from linuxserver/unpackers
add p7zip, tar , unrar and unzip packages
2017-01-15 22:31:19 +00:00
sparklyballs
f505697081 add p7zip, tar , unrar and unzip packages 2017-01-15 22:12:38 +00:00
sparklyballs
d9420323ac add p7zip, tar , unrar and unzip packages 2017-01-15 22:08:31 +00:00
sparklyballs
5138709d55 Merge pull request #18 from phendryx/blocklist-cleanup
Blocklist script cleanup
2016-11-10 05:01:51 +00:00
Paul Hendryx
f7490f4fd7 full path to settings.json 2016-11-03 07:12:13 -04:00
Paul Hendryx
6bad2d716e replace & with &, static filename output for wget 2016-11-02 10:04:54 -04:00
Paul Hendryx
72c8df500e working script from container 2016-11-02 09:39:55 -04:00
Paul Hendryx
a1b5353ea2 fixed update script 2016-11-02 09:38:19 -04:00
3 changed files with 23 additions and 8 deletions

View File

@@ -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/ /

View File

@@ -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..

View File

@@ -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