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.
This commit is contained in:
@@ -17,7 +17,10 @@ RAM="${RAM:-2048}"
|
|||||||
DISK="${DISK:-8}"
|
DISK="${DISK:-8}"
|
||||||
BRIDGE="${BRIDGE:-vmbr0}"
|
BRIDGE="${BRIDGE:-vmbr0}"
|
||||||
LXC_TAG="${LXC_TAG:-gitea-runner}" # stable identifier for the container
|
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_HOSTNAME="${GITEA_HOSTNAME:-gitea.taila5ad8.ts.net}"
|
||||||
GITEA_API="https://gitea.com/api/v1/repos/gitea/act_runner/releases"
|
GITEA_API="https://gitea.com/api/v1/repos/gitea/act_runner/releases"
|
||||||
VERSION_FILE="/opt/gitea-runner_version.txt"
|
VERSION_FILE="/opt/gitea-runner_version.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user