Clean up serviceLog output

This commit is contained in:
billz 2024-03-08 20:14:08 +01:00
parent 19fe43466e
commit f61e1b5c1a

View file

@ -46,6 +46,7 @@ function DisplayRestAPI()
$serviceStatus = !empty($output) ? "up" : "down";
exec("sudo systemctl status restapi.service", $output, $return);
array_shift($output);
$serviceLog = implode("\n", $output);
echo renderTemplate("restapi", compact(