fix: use ls / command instead ls

This commit is contained in:
Andras Bacsai 2024-02-15 13:52:42 +01:00
parent bba1cb3832
commit bfb0260550
2 changed files with 4 additions and 2 deletions

View File

@ -207,7 +207,7 @@ uZx9iFkCELtxrh31QJ68AAAAEXNhaWxANzZmZjY2ZDJlMmRkAQIDBA==
config()->set('coolify.mux_enabled', false);
// EC2 does not have `uptime` command, lol
instant_remote_process(['ls'], $this->createdServer, true);
instant_remote_process(['ls /'], $this->createdServer, true);
$this->createdServer->settings()->update([
'is_reachable' => true,

View File

@ -401,7 +401,9 @@ class Server extends BaseModel
return false;
}
// EC2 does not have `uptime` command, lol
$uptime = instant_remote_process(['ls'], $server, false);
$uptime = instant_remote_process(['ls /'], $server, false);
ray($uptime);
if (!$uptime) {
$server->settings()->update([
'is_reachable' => false,