fix: upgrade.sh

This commit is contained in:
Andras Bacsai
2024-11-10 21:44:34 +01:00
parent ae67bc2955
commit 60de7dc711
3 changed files with 55 additions and 14 deletions

View File

@@ -50,14 +50,13 @@ class UpdateCoolify
private function update()
{
PullHelperImageJob::dispatch($this->server);
instant_remote_process(["docker pull -q ghcr.io/coollabsio/coolify:{$this->latestVersion}"], $this->server, false);
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",
"bash /data/coolify/source/upgrade.sh --latest-coolify-version $this->latestVersion",
], $this->server);
}
}