fix: update prompt count and clarify messaging for auto-populated variables in configure_env.sh

This commit is contained in:
S
2026-03-02 10:50:49 -05:00
parent 65330d4e00
commit 6e1bf1fd0e

View File

@@ -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"