mirror of
https://github.com/pi-hole/web.git
synced 2026-04-26 19:55:15 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user