From c872c259c15eac954f9aaa372af477df80e4133c Mon Sep 17 00:00:00 2001 From: szaimen Date: Fri, 26 Aug 2022 22:52:19 +0200 Subject: [PATCH] do not pull containers START_CONTAINERS was provided and not AUTOMATIC_UPDATES Signed-off-by: szaimen --- php/src/Controller/DockerController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 9db7d627..74891d5f 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -30,20 +30,19 @@ class DockerController $container = $this->containerDefinitionFetcher->GetContainerById($id); foreach($container->GetDependsOn() as $dependency) { - $this->PerformRecursiveContainerStart($dependency); + $this->PerformRecursiveContainerStart($dependency, $pullContainer); } if ($id === 'nextcloud-aio-database') { if ($this->dockerActionManager->GetDatabasecontainerExitCode() > 0) { $pullContainer = false; + error_log('Not pulling the latest database image because the container was not correctly shut down.'); } } $this->dockerActionManager->DeleteContainer($container); $this->dockerActionManager->CreateVolumes($container); if ($pullContainer) { $this->dockerActionManager->PullContainer($container); - } else { - error_log('Not pulling the latest database image because the container was not correctly shut down.'); } $this->dockerActionManager->CreateContainer($container); $this->dockerActionManager->StartContainer($container);