Workaround for logs permissions not sticking

This commit is contained in:
Taikuh
2020-03-10 05:08:26 +08:00
parent c44d58d51b
commit 4a85188a22
4 changed files with 4 additions and 11 deletions

View File

@@ -13,6 +13,7 @@
</div>
<?php
exec('sudo chmod o+r /tmp/dnsmasq.log');
$log = file_get_contents('/tmp/dnsmasq.log');
echo '<textarea class="logoutput my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
?>

View File

@@ -113,6 +113,7 @@
<div class="form-group col-md-8">
<?php
if ($arrHostapdConf['LogEnable'] == 1) {
exec('sudo /bin/chmod o+r /tmp/hostapd.log');
$log = file_get_contents('/tmp/hostapd.log');
echo '<br /><textarea class="logoutput">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
} else {