use wget instead of curl for https
authorAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:48:17 +0000 (17:48 +1100)
committerAndrew Lorimer <andrew@lorimer.id.au>
Tue, 11 Dec 2018 06:48:17 +0000 (17:48 +1100)
update-blocklist.sh
index 97c9031d76a5b1f856a7d2e80e421798db147313..2c1207073a8a4f4384609a1a4f4537758ccefad1 100644 (file)
@@ -5,6 +5,6 @@ set -e
 
 blacklist=https://v.firebog.net/hosts/Easylist.txt
 mkdir -p /tmp/dnsmasq-blocklist
 
 blacklist=https://v.firebog.net/hosts/Easylist.txt
 mkdir -p /tmp/dnsmasq-blocklist
-curl -s --max-filesize 20M -o  /tmp/dnsmasq-blocklist/ads $blacklist
+wget --cut-dirs=100 -np -nH -O  /tmp/dnsmasq-blocklist/ads $blacklist
 sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads
 /etc/init.d/dnsmasq restart
 sed -i -e 's/^/0.0.0.0 /' /tmp/dnsmasq-blocklist/ads
 /etc/init.d/dnsmasq restart