mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-06 22:22:17 +02:00
Clean up comments in forgejo-runner.sh
Removed comments regarding unattended mode checks and app-specific variables.
This commit is contained in:
committed by
GitHub
parent
9dfad63c09
commit
2441df8ac9
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Simon Friedrich (lengschder97)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
@@ -18,8 +17,6 @@ var_unprivileged="${var_unprivileged:-1}"
|
||||
var_nesting="${var_nesting:-1}"
|
||||
var_keyctl="${var_keyctl:-1}"
|
||||
|
||||
# App-specific variables (not in build.func whitelist)
|
||||
# Export so they survive lxc-attach into the container
|
||||
export var_forgejo_instance="${var_forgejo_instance:-}"
|
||||
export var_forgejo_runner_token="${var_forgejo_runner_token:-}"
|
||||
export var_runner_labels="${var_runner_labels:-}"
|
||||
@@ -62,9 +59,6 @@ function update_script() {
|
||||
exit
|
||||
}
|
||||
|
||||
# Fail early if running unattended without required values
|
||||
# mode is only set when the user explicitly passes it (automating);
|
||||
# bare "bash -c $(curl ...)" leaves mode empty and shows the whiptail menu
|
||||
if [[ -n "${mode:-}" ]]; then
|
||||
if [[ -z "${var_forgejo_instance:-}" ]]; then
|
||||
msg_error "var_forgejo_instance is required for unattended installs."
|
||||
|
||||
Reference in New Issue
Block a user