mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Clean up serviceLog output
This commit is contained in:
parent
19fe43466e
commit
f61e1b5c1a
@ -46,6 +46,7 @@ function DisplayRestAPI()
|
|||||||
$serviceStatus = !empty($output) ? "up" : "down";
|
$serviceStatus = !empty($output) ? "up" : "down";
|
||||||
|
|
||||||
exec("sudo systemctl status restapi.service", $output, $return);
|
exec("sudo systemctl status restapi.service", $output, $return);
|
||||||
|
array_shift($output);
|
||||||
$serviceLog = implode("\n", $output);
|
$serviceLog = implode("\n", $output);
|
||||||
|
|
||||||
echo renderTemplate("restapi", compact(
|
echo renderTemplate("restapi", compact(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user