Adds dnscrypt blocklist generation

This commit is contained in:
Nemo 2019-03-28 11:54:49 +05:30
parent 43f6869c88
commit ab291fb0f3
1 changed files with 18 additions and 1 deletions

View File

@ -31,4 +31,21 @@ pass git pushall
# Sync mobile passwords
cd /home/nemo/projects/personal/mobile-passwords
git from && ./runme.sh && git pushall
git from && ./runme.sh && git pushall
# Sync mobile passwords
pushd /home/nemo/projects/personal/mobile-passwords
git from && ./runme.sh && git push origin master
popd
# Generate a blacklist hosts file
if ping -c 1 192.168.1.1 &> /dev/null
then
# Generate the Blacklist
pushd /home/nemo/projects/personal/dnscrypt-proxy/contrib/
python2 ./generate-domains-blacklist.py > blacklist.txt
blacklist2hosts.php blacklist.txt hosts
popd
else
echo 0
fi