Skip to content

Commit

Permalink
Create renew-domains-file.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
oraclenik committed Jan 12, 2019
1 parent 255cf46 commit 9276519
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Config/renew-domains-file.sh
Original file line number Diff line number Diff line change
@@ -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.