From b3d3e151e0aa86a13c9c437e3e8bd59f5cbe20e8 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Mon, 18 Apr 2016 22:23:43 -0400 Subject: [PATCH] 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. --- php/add.php | 4 ++-- php/sub.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/add.php b/php/add.php index cfe632b8..2e84f944 100644 --- a/php/add.php +++ b/php/add.php @@ -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; } diff --git a/php/sub.php b/php/sub.php index c753ae92..ba3f7145 100644 --- a/php/sub.php +++ b/php/sub.php @@ -4,9 +4,9 @@ if(!isset($_GET['domain'], $_GET['list'])) switch($_GET['list']) { case "white": - exec("/usr/local/bin/whitelist.sh -q -d ${_GET['domain']}"); + exec("sudo pihole -w -q -d ${_GET['domain']}"); break; case "black": - exec("/usr/local/bin/blacklist.sh -q -d ${_GET['domain']}"); + exec("sudo pihole -b -q -d ${_GET['domain']}"); break; }