mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Update blocklist_dest
This commit is contained in:
parent
584ee2cde0
commit
ab68168951
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ require_once '../../includes/config.php';
|
|||
if (isset($_POST['blocklist_id'])) {
|
||||
$blocklist_id = $_POST['blocklist_id'];
|
||||
$notracking_url = "https://raw.githubusercontent.com/notracking/hosts-blocklists/master/";
|
||||
$dnsmasq_config = "/etc/dnsmasq.d/";
|
||||
$blocklist_dest = "/etc/raspap/adblock/";
|
||||
|
||||
switch ($blocklist_id) {
|
||||
case "notracking-hostnames":
|
||||
|
@ -18,7 +18,7 @@ if (isset($_POST['blocklist_id'])) {
|
|||
}
|
||||
$blocklist = $notracking_url . $file;
|
||||
|
||||
exec("sudo /etc/raspap/adblock/update_blocklist.sh $blocklist $file $dnsmasq_config", $return);
|
||||
exec("sudo /etc/raspap/adblock/update_blocklist.sh $blocklist $file $blocklist_dest", $return);
|
||||
$jsonData = ['return'=>$return];
|
||||
echo json_encode($jsonData);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue