From ab681689514f1433ea32fd8987dfec612406bfe4 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 27 Mar 2020 14:31:50 +0000 Subject: [PATCH] Update blocklist_dest --- ajax/adblock/update_blocklist.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ajax/adblock/update_blocklist.php b/ajax/adblock/update_blocklist.php index 4f5d2062..12bcab97 100644 --- a/ajax/adblock/update_blocklist.php +++ b/ajax/adblock/update_blocklist.php @@ -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); }