mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
Refactor ServerStatusJob.php to remove coolify.yaml from cloud hosted servers
This commit is contained in:
parent
f4cb7cea21
commit
6140d0c849
@ -54,7 +54,7 @@ public function handle()
|
|||||||
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…
Reference in New Issue
Block a user