mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-24 08:30:26 +00:00
replace blocklist dest w/ constant
This commit is contained in:
parent
ffbd99414e
commit
1103401fe0
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue