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);