Commit 0e51469a authored by Shawn Webb's avatar Shawn Webb
Browse files

Add initial DNS cronjob script

parents
#!/bin/sh -ex
if [ "$(id -u)" -ne "0" ]; then
echo "[-] Must be run as root" 1>&2
exit 1
fi
myzones="/usr/local/etc/void-zones/my_void_hosts.txt"
cd /data/Ultimate.Hosts.Blacklist
git pull
grep '^0\.0\.0\.0' hosts/hosts0 > ${myzones}
grep '^0\.0\.0\.0' hosts/hosts1 >> ${myzones}
/usr/local/bin/void-zones-update.sh
service unbound restart
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment