async update process

This commit is contained in:
Andras Bacsai
2024-05-30 20:02:11 +02:00
parent 2d1d03bf8e
commit 46a500f5e5

View File

@@ -53,12 +53,12 @@ class UpdateCoolify
private function update() private function update()
{ {
if (isDev()) { if (isDev()) {
instant_remote_process([ remote_process([
"sleep 1" "sleep 10"
], $this->server); ], $this->server);
return; return;
} }
instant_remote_process([ remote_process([
"curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh", "curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh",
"bash /data/coolify/source/upgrade.sh $this->latestVersion" "bash /data/coolify/source/upgrade.sh $this->latestVersion"
], $this->server); ], $this->server);