fix: use ls / command instead ls
This commit is contained in:
parent
bba1cb3832
commit
bfb0260550
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user