From 6140d0c8496e29674e19a984d1ef83a060012e46 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 3 May 2024 10:31:25 +0200 Subject: [PATCH] Refactor ServerStatusJob.php to remove coolify.yaml from cloud hosted servers --- app/Jobs/ServerStatusJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.php index 1383e1f5a..d91961bcb 100644 --- a/app/Jobs/ServerStatusJob.php +++ b/app/Jobs/ServerStatusJob.php @@ -54,7 +54,7 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted private function removeCoolifyYaml() { // This will remote the coolify.yaml file from the server as it is not needed on cloud servers - if (isCloud()) { + if (isCloud() && $this->server->id !== 0) { $file = $this->server->proxyPath() . "/dynamic/coolify.yaml"; return instant_remote_process([ "rm -f $file",