mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 04:59:30 +00:00
Refactor ServerStatusJob.php to remove coolify.yaml from cloud hosted servers
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user