Compare commits

...

4 Commits

Author SHA1 Message Date
CanbiZ (MickLesk) b5dac2719e Simplify Forgejo runner installation script prompts
Remove prompt for Forgejo instance URL if already set.
2026-07-06 18:24:44 +02:00
CanbiZ (MickLesk) a17b21e7d9 Update install/forgejo-runner-install.sh
Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com>
2026-07-06 18:20:17 +02:00
CanbiZ (MickLesk) 799e6381f6 Add post-setup message for Forgejo Runner
Added a message to inform users about checking the Forgejo instance after setup.
2026-07-06 18:19:58 +02:00
CanbiZ (MickLesk) 2441df8ac9 Clean up comments in forgejo-runner.sh
Removed comments regarding unattended mode checks and app-specific variables.
2026-07-06 18:18:28 +02:00
2 changed files with 2 additions and 8 deletions
+1 -6
View File
@@ -1,6 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG # Copyright (c) 2021-2026 community-scripts ORG
# Author: Simon Friedrich (lengschder97) # Author: Simon Friedrich (lengschder97)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE # 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_nesting="${var_nesting:-1}"
var_keyctl="${var_keyctl:-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_instance="${var_forgejo_instance:-}"
export var_forgejo_runner_token="${var_forgejo_runner_token:-}" export var_forgejo_runner_token="${var_forgejo_runner_token:-}"
export var_runner_labels="${var_runner_labels:-}" export var_runner_labels="${var_runner_labels:-}"
@@ -62,9 +59,6 @@ function update_script() {
exit 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 [[ -n "${mode:-}" ]]; then
if [[ -z "${var_forgejo_instance:-}" ]]; then if [[ -z "${var_forgejo_instance:-}" ]]; then
msg_error "var_forgejo_instance is required for unattended installs." msg_error "var_forgejo_instance is required for unattended installs."
@@ -82,3 +76,4 @@ description
msg_ok "Completed successfully!\n" msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} After first boot, check your Forgejo Instance for the new Runner.${CL}"
+1 -2
View File
@@ -11,9 +11,9 @@ catch_errors
setting_up_container setting_up_container
network_check network_check
update_os update_os
setup_yq setup_yq
# Get required configuration — skip prompts if already set (generated/unattended mode)
if [[ -z "${var_forgejo_instance:-}" ]]; then if [[ -z "${var_forgejo_instance:-}" ]]; then
read -r -p "${TAB3}Forgejo Instance URL (e.g. https://codeberg.org): " var_forgejo_instance read -r -p "${TAB3}Forgejo Instance URL (e.g. https://codeberg.org): " var_forgejo_instance
var_forgejo_instance="${var_forgejo_instance:-https://codeberg.org}" var_forgejo_instance="${var_forgejo_instance:-https://codeberg.org}"
@@ -37,7 +37,6 @@ if [[ -z "${var_forgejo_runner_token:-}" ]]; then
exit 1 exit 1
fi fi
# Runner labels — default is always included; additional labels are appended
DEFAULT_RUNNER_LABELS="linux-amd64:docker://node:22-bookworm" DEFAULT_RUNNER_LABELS="linux-amd64:docker://node:22-bookworm"
if [[ -z "${var_runner_labels:-}" ]]; then if [[ -z "${var_runner_labels:-}" ]]; then
read -r -p "${TAB3}Additional runner labels (comma-separated, or leave blank for default only): " var_runner_labels read -r -p "${TAB3}Additional runner labels (comma-separated, or leave blank for default only): " var_runner_labels