Created
November 10, 2016 18:00
-
-
Save codeprimate/7d935dd89eeac90a26dcf561a68db473 to your computer and use it in GitHub Desktop.
Update Transmission Blocklist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "* Updating transmission blocklist" | |
BLOCKLIST_DIR=/var/lib/transmission-daemon/info/blocklists | |
#wget -q -O- http://www.bluetack.co.uk/config/level{1,2,3}.gz | \ | |
# gunzip -c > ${BLOCKLIST_DIR}/level123 && \ | |
cd $BLOCKLIST_DIR | |
wget -qO level1.gz http://list.iblocklist.com/?list=bt_level1&fileformat=p2p&archiveformat=gz&username=XXXX&pin=XXXX | |
wget -qO level2.gz http://list.iblocklist.com/?list=bt_level2&fileformat=p2p&archiveformat=gz&username=XXXX&pin=XXXX | |
wget -qO level3.gz http://list.iblocklist.com/?list=bt_level3&fileformat=p2p&archiveformat=gz&username=XXXX&pin=XXXX | |
sleep 10 | |
gunzip -f *.gz | |
chown debian-transmission:debian-transmission ${BLOCKLIST_DIR}/* | |
chmod 640 ${BLOCKLIST_DIR}/* | |
service transmission-daemon reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment