From bb3c6b4810b9ed5d0377f10bdd27e461815ce696 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Sun, 9 Nov 2025 13:48:00 -0700 Subject: [PATCH] Update confirmation prompts in secret generation and service configuration scripts to default to 'yes' - Modified the confirmation prompts in 03_generate_secrets.sh and 05_configure_services.sh to default to 'yes' for user actions regarding domain and email confirmation, as well as n8n worker updates. This change aims to streamline user interactions and reduce the need for repeated confirmations. --- scripts/03_generate_secrets.sh | 4 ++-- scripts/05_configure_services.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/03_generate_secrets.sh b/scripts/03_generate_secrets.sh index 13fc851..e1c4e49 100644 --- a/scripts/03_generate_secrets.sh +++ b/scripts/03_generate_secrets.sh @@ -138,7 +138,7 @@ else if [[ "$DOMAIN_TO_USE" =~ [^a-zA-Z0-9.-] ]]; then wt_msg "Validation" "Warning: Domain contains potentially invalid characters: '$DOMAIN_TO_USE'" fi - if wt_yesno "Confirm Domain" "Use '$DOMAIN_TO_USE' as the primary domain?" "no"; then + if wt_yesno "Confirm Domain" "Use '$DOMAIN_TO_USE' as the primary domain?" "yes"; then DOMAIN="$DOMAIN_TO_USE" # Set the final DOMAIN variable generated_values["USER_DOMAIN_NAME"]="$DOMAIN" # Using USER_DOMAIN_NAME log_info "Domain set to '$DOMAIN'. It will be saved in .env." @@ -168,7 +168,7 @@ else if [[ ! "$USER_EMAIL" =~ ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ ]]; then wt_msg "Validation" "Warning: Email format appears to be invalid: '$USER_EMAIL'" fi - if wt_yesno "Confirm Email" "Use '$USER_EMAIL' as your email?" "no"; then + if wt_yesno "Confirm Email" "Use '$USER_EMAIL' as your email?" "yes"; then break # Confirmed, exit loop fi done diff --git a/scripts/05_configure_services.sh b/scripts/05_configure_services.sh index f6a397c..bf9e294 100644 --- a/scripts/05_configure_services.sh +++ b/scripts/05_configure_services.sh @@ -86,7 +86,7 @@ if [[ -n "$EXISTING_N8N_WORKER_COUNT" ]]; then if [[ "$N8N_WORKER_COUNT_INPUT_RAW" =~ ^0*[1-9][0-9]*$ ]]; then N8N_WORKER_COUNT_TEMP="$((10#$N8N_WORKER_COUNT_INPUT_RAW))" if [[ "$N8N_WORKER_COUNT_TEMP" -ge 1 ]]; then - if wt_yesno "Confirm Workers" "Update n8n workers to $N8N_WORKER_COUNT_TEMP?" "no"; then + if wt_yesno "Confirm Workers" "Update n8n workers to $N8N_WORKER_COUNT_TEMP?" "yes"; then N8N_WORKER_COUNT="$N8N_WORKER_COUNT_TEMP" else N8N_WORKER_COUNT="$N8N_WORKER_COUNT_CURRENT" @@ -108,7 +108,7 @@ else if [[ "$N8N_WORKER_COUNT_CANDIDATE" =~ ^0*[1-9][0-9]*$ ]]; then N8N_WORKER_COUNT_VALIDATED="$((10#$N8N_WORKER_COUNT_CANDIDATE))" if [[ "$N8N_WORKER_COUNT_VALIDATED" -ge 1 ]]; then - if wt_yesno "Confirm Workers" "Run $N8N_WORKER_COUNT_VALIDATED n8n worker(s)?" "no"; then + if wt_yesno "Confirm Workers" "Run $N8N_WORKER_COUNT_VALIDATED n8n worker(s)?" "yes"; then N8N_WORKER_COUNT="$N8N_WORKER_COUNT_VALIDATED" break fi