mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-30 08:25:48 +01:00
working script from container
This commit is contained in:
@@ -3,15 +3,16 @@
|
||||
BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' settings.json`
|
||||
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json`
|
||||
|
||||
if [ $BLOCKLIST_URL == true ]; then
|
||||
mkdir -p /tmp/blocklist
|
||||
cd /tmp/blocklist
|
||||
if [ $BLOCKLIST_ENABLED == true ]; then
|
||||
mkdir -p /tmp/blocklists
|
||||
rm -rf /tmp/blocklists/*
|
||||
cd /tmp/blocklists
|
||||
wget -q $BLOCKLIST_URL
|
||||
if [ $? == 0 ]; then
|
||||
gunzip *.gz
|
||||
if [ $? == 0 ]; then
|
||||
chmod go+r *
|
||||
rm /config/blocklists/*
|
||||
rm -rf /config/blocklists/*
|
||||
cp /tmp/blocklists/* /config/blocklists
|
||||
s6-svc -h /var/run/s6/services/transmission
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user