Refactor ServerStatusJob.php to remove coolify.yaml from cloud hosted servers

This commit is contained in:
Andras Bacsai 2024-05-03 10:31:25 +02:00
parent f4cb7cea21
commit 6140d0c849

View File

@ -54,7 +54,7 @@ public function handle()
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",