From f61e1b5c1af33c63d92b0da5f57e72dc32cfc1c2 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 8 Mar 2024 20:14:08 +0100 Subject: [PATCH] Clean up serviceLog output --- includes/restapi.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/restapi.php b/includes/restapi.php index ff16c997..2a1be6d8 100644 --- a/includes/restapi.php +++ b/includes/restapi.php @@ -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(