Skip to content
Permalink
Browse files

Create renew-domains-file.sh

  • Loading branch information...
oraclenik committed Jan 12, 2019
1 parent 255cf46 commit 927651926e92d45505ad6f310927100f6e8045bd
Showing with 9 additions and 0 deletions.
  1. +9 −0 Config/renew-domains-file.sh
@@ -0,0 +1,9 @@
#!/bin/bash
set -e
wget https://raw.githubusercontent.com/freedomeofdevelopers/fod/master/domains
sed -i '1s/^/+/' domains
sed -e ':a' -e 'N' -e '$!ba' -e 's/\n./\n+./g' domains > domains-new
rm domains
mv /etc/privoxy/domains /etc/privoxy/domains-old
mv domains-new /etc/privoxy/domains
systemctl restart privoxy.service

0 comments on commit 9276519

Please sign in to comment.
You can’t perform that action at this time.