Refactor ServerStatusJob.php to remove coolify.yaml from cloud hosted servers
This commit is contained in:
parent
f4cb7cea21
commit
6140d0c849
@ -54,7 +54,7 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
private function removeCoolifyYaml()
|
private function removeCoolifyYaml()
|
||||||
{
|
{
|
||||||
// This will remote the coolify.yaml file from the server as it is not needed on cloud servers
|
// 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";
|
$file = $this->server->proxyPath() . "/dynamic/coolify.yaml";
|
||||||
return instant_remote_process([
|
return instant_remote_process([
|
||||||
"rm -f $file",
|
"rm -f $file",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user