diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 3bb59233..2230e5a0 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -168,13 +168,19 @@ readonly class DockerController { $this->configurationManager->instanceRestoreAttempt = false; $this->configurationManager->commitTransaction(); + // Get streaming response start and closure + $nonbufResp = $this->startStreamingResponse($response); + $addToStreamingResponseBody = $this->getAddToStreamingResponseBody($nonbufResp); + $id = self::TOP_CONTAINER; - $this->PerformRecursiveContainerStop($id); + $this->PerformRecursiveContainerStop($id, true, $addToStreamingResponseBody); $id = 'nextcloud-aio-borgbackup'; - $this->PerformRecursiveContainerStart($id); + $this->PerformRecursiveContainerStart($id, true, $addToStreamingResponseBody); - return $response->withStatus(201)->withHeader('Location', '.'); + // End streaming response + $this->finalizeStreamingResponse($nonbufResp); + return $nonbufResp; } public function StartContainer(Request $request, Response $response, array $args) : Response diff --git a/php/templates/containers.twig b/php/templates/containers.twig index fa174836..577ac45b 100644 --- a/php/templates/containers.twig +++ b/php/templates/containers.twig @@ -215,7 +215,7 @@ {% endif %} {% else %}

Everything set! Click on the button below to test the path and encryption password:

-
+