Browse Source

replace blocklist dest w/ constant

pull/543/head
billz 2 years ago
parent
commit
1103401fe0
  1. 3
      ajax/adblock/update_blocklist.php

3
ajax/adblock/update_blocklist.php

@ -6,7 +6,6 @@ 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/";
$blocklist_dest = "/etc/raspap/adblock/";
switch ($blocklist_id) {
case "notracking-hostnames":
@ -18,7 +17,7 @@ if (isset($_POST['blocklist_id'])) {
}
$blocklist = $notracking_url . $file;
exec("sudo /etc/raspap/adblock/update_blocklist.sh $blocklist $file $blocklist_dest", $return);
exec("sudo /etc/raspap/adblock/update_blocklist.sh $blocklist $file " .RASPI_ADBLOCK_LISTPATH, $return);
$jsonData = ['return'=>$return];
echo json_encode($jsonData);
}

Loading…
Cancel
Save