mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
fix: use ls / command instead ls
This commit is contained in:
1 parent
bba1cb3832
commit
bfb0260550
2 files changed
+4
-2
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user