From fef37d2676447ab8ed4e4707a3e7a138ea34825f Mon Sep 17 00:00:00 2001 From: Damien Date: Thu, 30 Jul 2026 13:33:35 +0200 Subject: [PATCH] gitea-runner: make SCRIPT_URL overridable, matching openbao Was a fixed value, unlike openbao's SCRIPT_URL="${SCRIPT_URL:-...}". Two consequences: exec_in_lxc forwarded SCRIPT_URL into the container where it was immediately overwritten by the hardcoded value, making the forward a no-op; and the lib/common.sh sourcing fallback derives its fetch URL from SCRIPT_URL, so it always pointed at main (where lib/common.sh doesn't exist yet), making this branch untestable end-to-end for gitea-runner. --- gitea-runner/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitea-runner/install.sh b/gitea-runner/install.sh index 7efcfb2..19a782a 100644 --- a/gitea-runner/install.sh +++ b/gitea-runner/install.sh @@ -17,7 +17,10 @@ RAM="${RAM:-2048}" DISK="${DISK:-8}" BRIDGE="${BRIDGE:-vmbr0}" LXC_TAG="${LXC_TAG:-gitea-runner}" # stable identifier for the container -SCRIPT_URL="https://gitea.arnodo.fr/Damien/infra-scripts/raw/branch/main/gitea-runner/install.sh" +# SCRIPT_URL is what the host-side flow pipes into the LXC. Override it when +# testing from a non-main branch, e.g. +# SCRIPT_URL="https://gitea.arnodo.fr/.../branch/chore/standardize-lxc-scripts/gitea-runner/install.sh" +SCRIPT_URL="${SCRIPT_URL:-https://gitea.arnodo.fr/Damien/infra-scripts/raw/branch/main/gitea-runner/install.sh}" GITEA_HOSTNAME="${GITEA_HOSTNAME:-gitea.taila5ad8.ts.net}" GITEA_API="https://gitea.com/api/v1/repos/gitea/act_runner/releases" VERSION_FILE="/opt/gitea-runner_version.txt"