From aaa2febef4cc44b79650af26342e1f48882fd943 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 13 Oct 2023 15:16:33 +0200 Subject: [PATCH] fix: docker cleanup jobs --- app/Jobs/DockerCleanupJob.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.php index 08cb16959..411a0f464 100644 --- a/app/Jobs/DockerCleanupJob.php +++ b/app/Jobs/DockerCleanupJob.php @@ -47,20 +47,7 @@ public function handle(): void if (!$this->server->isFunctional()) { return; } - if (isDev()) { - $this->dockerRootFilesystem = "/"; - } else { - $this->dockerRootFilesystem = instant_remote_process( - [ - "stat --printf=%m $(docker info --format '{{json .DockerRootDir}}'' |sed 's/\"//g')" - ], - $this->server, - false - ); - } - if (!$this->dockerRootFilesystem) { - return; - } + $this->dockerRootFilesystem = "/"; $this->usageBefore = $this->getFilesystemUsage(); if ($this->usageBefore >= $this->server->settings->cleanup_after_percentage) { ray('Cleaning up ' . $this->server->name)->color('orange');