Update list editing commands

Updates from using `whitelist.sh` and `blacklist.sh` to
using `pihole`. Currently includes sudo in command, but
after the scripts get updated with sudo checking that
should not be needed.
This commit is contained in:
Mcat12
2016-04-18 22:23:43 -04:00
parent 4d6ec1c5a5
commit b3d3e151e0
2 changed files with 4 additions and 4 deletions

View File

@@ -4,9 +4,9 @@ if(!isset($_GET['domain'], $_GET['list']))
switch($_GET['list']) {
case "white":
exec("/usr/local/bin/whitelist.sh -q ${_GET['domain']}");
exec("sudo pihole -w -q ${_GET['domain']}");
break;
case "black":
exec("/usr/local/bin/blacklist.sh -q ${_GET['domain']}");
exec("sudo pihole -b -q ${_GET['domain']}");
break;
}