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 @@ public function handle($manual_update = false)
private function update()
{
if (isDev()) {
instant_remote_process([
"sleep 1"
remote_process([
"sleep 10"
], $this->server);
return;
}
instant_remote_process([
remote_process([
"curl -fsSL https://cdn.coollabs.io/coolify/upgrade.sh -o /data/coolify/source/upgrade.sh",
"bash /data/coolify/source/upgrade.sh $this->latestVersion"
], $this->server);