From f9afd96280c6cb7f1491dbe23467fa37ca2f73ac Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 4 Oct 2019 18:57:58 +0100 Subject: [PATCH] Fix: update tmp/dnsmasqdata to match sudoers. Resolves #407 --- includes/dhcp.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/dhcp.php b/includes/dhcp.php index 085239c4..61c40b03 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -55,9 +55,8 @@ function DisplayDHCPConfig() $config .= "dhcp-host=$mac,$ip".PHP_EOL; } } - - file_put_contents("/tmp/dhcpddata", $config); - system('sudo cp /tmp/dhcpddata '.RASPI_DNSMASQ_CONFIG, $return); + file_put_contents("/tmp/dnsmasqdata", $config); + system('sudo cp /tmp/dnsmasqdata '.RASPI_DNSMASQ_CONFIG, $return); } else { $status->addMessage($errors, 'danger'); }