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>';
?>