fix: use ls / command instead ls
This commit is contained in:
parent
bba1cb3832
commit
bfb0260550
2 changed files with 4 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue