mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2026-03-18 01:30:14 +01:00
replace & with &, static filename output for wget
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
BLOCKLIST_ENABLED=`jq -r '.["blocklist-enabled"]' settings.json`
|
||||
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json`
|
||||
BLOCKLIST_URL=`jq -r '.["blocklist-url"]' settings.json | sed 's/\&/\&/g'`
|
||||
|
||||
if [ $BLOCKLIST_ENABLED == true ]; then
|
||||
mkdir -p /tmp/blocklists
|
||||
rm -rf /tmp/blocklists/*
|
||||
cd /tmp/blocklists
|
||||
wget -q $BLOCKLIST_URL
|
||||
wget -q -O blocklist.gz "$BLOCKLIST_URL"
|
||||
if [ $? == 0 ]; then
|
||||
gunzip *.gz
|
||||
if [ $? == 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user