Fixed comments

This commit is contained in:
lengschder97 2026-01-13 08:36:33 +01:00
parent a0cecbc773
commit 572da9a60a
2 changed files with 5 additions and 17 deletions

View File

@ -38,13 +38,9 @@ function update_script() {
msg_ok "Stopped Services"
msg_info "Fetching latest Forgejo Runner version"
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
RELEASE=$(curl -fsSL https://data.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | grep -oP '"tag_name":\s*"\K[^"]+' | sed 's/^v//')
msg_info "Updating Forgejo Runner to v${RELEASE}"
curl -fsSL "https://data.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-${OS}-${ARCH}" -o forgejo-runner
curl -fsSL "https://data.forgejo.org/forgejo/runner/releases/download/v${RELEASE}/forgejo-runner-linux-amd64" -o forgejo-runner
chmod +x /usr/local/bin/forgejo-runner
msg_ok "Updated Forgejo Runner"
@ -60,6 +56,4 @@ build_container
description
msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"

View File

@ -40,23 +40,17 @@ systemctl enable --now podman.socket
msg_ok "Enabled Podman socket"
msg_info "Fetching latest Forgejo Runner release"
RUNNER_VERSION=$(
curl -fsSL https://data.forgejo.org/api/v1/repos/forgejo/runner/releases/latest |
jq -r .name | sed 's/^v//'
)
RUNNER_VERSION=$(curl -fsSL https://data.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq -r .name | sed 's/^v//')
msg_ok "Forgejo Runner v${RUNNER_VERSION}"
msg_info "Installing Forgejo Runner"
FORGEJO_URL="https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-${ARCH}"
msg_info "Downloading Forgejo Runner"
curl -fsSL "$FORGEJO_URL" -o /usr/local/bin/forgejo-runner
chmod +x /usr/local/bin/forgejo-runner
msg_ok "Runner installed"
msg_ok "Installed Forgejo Runner"
msg_info "Registering Forgejo Runner"
export DOCKER_HOST="unix:///run/podman/podman.sock"
forgejo-runner register \
--instance "$FORGEJO_INSTANCE" \
--token "$FORGEJO_RUNNER_TOKEN" \