fix(forgejo-runner): also require forgejo instance URL in unattended mode

This commit is contained in:
Cyra
2026-03-29 19:30:46 -07:00
parent fb95fe9457
commit 82ea3f24f1

View File

@@ -62,11 +62,17 @@ function update_script() {
exit exit
} }
# Fail early if running unattended without a runner token # Fail early if running unattended without required values
if [[ -n "${mode:-}" && -z "${var_forgejo_runner_token:-}" ]]; then if [[ -n "${mode:-}" ]]; then
if [[ -z "${var_forgejo_instance:-}" ]]; then
msg_error "var_forgejo_instance is required for unattended installs."
exit 1
fi
if [[ -z "${var_forgejo_runner_token:-}" ]]; then
msg_error "var_forgejo_runner_token is required for unattended installs." msg_error "var_forgejo_runner_token is required for unattended installs."
exit 1 exit 1
fi fi
fi
start start
build_container build_container