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 @@ public function validateServer()
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 @@ public function validateConnection()
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,