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

Add initial DNS cronjob script

#!/bin/sh -ex
if [ "$(id -u)" -ne "0" ]; then
echo "[-] Must be run as root" 1>&2
exit 1
cd /data/Ultimate.Hosts.Blacklist
git pull
grep '^0\.0\.0\.0' hosts/hosts0 > ${myzones}
grep '^0\.0\.0\.0' hosts/hosts1 >> ${myzones}
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