From 6e1bf1fd0e06d5d75e88d35711229bddeeba49a3 Mon Sep 17 00:00:00 2001 From: S Date: Mon, 2 Mar 2026 10:50:49 -0500 Subject: [PATCH] fix: update prompt count and clarify messaging for auto-populated variables in configure_env.sh --- setup/configure_env.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup/configure_env.sh b/setup/configure_env.sh index d2cdcc3..ac7d727 100755 --- a/setup/configure_env.sh +++ b/setup/configure_env.sh @@ -64,8 +64,8 @@ get_env_val() { # --------------------------------------------------------------------------- # Prompt function # --------------------------------------------------------------------------- -# Base prompt count (58 fixed + 3 TLS conditional slots — repo/DB prompts added dynamically) -TOTAL_PROMPTS=61 +# Base prompt count (56 fixed + 3 TLS conditional slots — repo/DB prompts added dynamically) +TOTAL_PROMPTS=59 CURRENT_PROMPT=0 LAST_SECTION="" @@ -228,7 +228,7 @@ printf '\n%b╔═════════════════════ printf '%b║ Gitea Migration — Environment Setup ║%b\n' "$C_BOLD" "$C_RESET" printf '%b╚══════════════════════════════════════════════════════════╝%b\n\n' "$C_BOLD" "$C_RESET" printf 'Press Enter to keep the current value shown in [brackets].\n' -printf 'Auto-populated variables (tokens) will be skipped.\n' +printf 'Auto-populated and derived variables (tokens, internal URLs) will be skipped.\n' # --- UNRAID SERVER --- prompt_var "UNRAID_IP" "Static IP of Unraid server" ip "" "UNRAID SERVER" @@ -292,10 +292,8 @@ prompt_var "ACT_RUNNER_VERSION" "act_runner version" # --- GITEA PRIMARY INSTANCE --- prompt_var "GITEA_DOMAIN" "Public domain pointing to Unraid" nonempty "" "GITEA PRIMARY INSTANCE" -prompt_var "GITEA_INTERNAL_URL" "Internal URL (e.g. http://IP:3000)" url "" "GITEA PRIMARY INSTANCE" # --- GITEA BACKUP INSTANCE --- -prompt_var "GITEA_BACKUP_INTERNAL_URL" "Internal URL of Fedora Gitea" url "" "GITEA BACKUP INSTANCE" prompt_var "GITEA_BACKUP_MIRROR_INTERVAL" "How often Fedora pulls from Unraid" nonempty "8h" "GITEA BACKUP INSTANCE" prompt_var "BACKUP_STORAGE_PATH" "Absolute path on Fedora for backup archives" path "" "GITEA BACKUP INSTANCE" prompt_var "BACKUP_RETENTION_COUNT" "Number of backup archives to keep" integer "5" "GITEA BACKUP INSTANCE"