From bcff1ffc0a1fac6c640c88aadc5de73a779b6ff4 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Thu, 30 Oct 2025 11:28:36 +0100 Subject: [PATCH] chore(display): disable restricted shell --- display/web/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/display/web/main.go b/display/web/main.go index 7684156..f3b5070 100644 --- a/display/web/main.go +++ b/display/web/main.go @@ -45,7 +45,7 @@ func StartWebServer(v string) { e.GET("/", indexRoute) e.GET("/sse", sseRoute) e.GET("/splash", func(ctx echo.Context) error { - return ctx.HTML(http.StatusOK, shared.SplashScreenTemplate) + return ctx.HTML(http.StatusOK, shared.SplashScreenTemplate) }) apiGroup := e.Group("/api") @@ -147,7 +147,7 @@ func shellCommandRoute(ctx echo.Context) error { return ctx.JSON(http.StatusBadRequest, ErrorResponse{Error: "Invalid JSON request"}) } - cmd := exec.Command("bash", "-c", "-r", commandInput.Command) + cmd := exec.Command("bash", "-c", commandInput.Command) storagePath, err := pkg.GetStoragePath() if err != nil { slog.Error("Failed to get storage path", "error", err)