fix(examples): systemd LXC units upgrade must install the runner (#479)

Install the version of the runner that the upgraded script needs.

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/479
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
pull/491/head
Earl Warren 2025-02-25 10:37:20 +00:00 committed by earl-warren
parent 74dc687c1d
commit e33d3b0048
No known key found for this signature in database
GPG Key ID: F128CBE6AB3A7201
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ function upgrade_safely() {
curl --fail -sS -o $upgrade https://code.forgejo.org/forgejo/runner/raw/tag/v$version/examples/lxc-systemd/forgejo-runner-service.sh
fi
chmod +x $upgrade
$upgrade install_runner
$upgrade install_or_update_lxc_helpers
$upgrade install_or_update_self
}