mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Initial commit
This commit is contained in:
parent
ee3de983ab
commit
cbdc5a11e5
1 changed files with 12 additions and 0 deletions
12
ajax/logging/clearlog.php
Normal file
12
ajax/logging/clearlog.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
require_once '../../includes/config.php';
|
||||
require_once '../../includes/functions.php';
|
||||
|
||||
if (isset($_POST['svc'])) {
|
||||
$tmplog = '/tmp/' .$_POST['svc']. '.log';
|
||||
|
||||
// clear log for requested service
|
||||
exec("sudo truncate -s 0 $tmplog", $return);
|
||||
echo json_encode($return);
|
||||
}
|
Loading…
Reference in a new issue