mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
Refactor logging and user prompts in installation and wizard scripts
- Enhanced user feedback by replacing echo statements with log_info and log_error for better consistency in logging. - Added empty echo statements before user prompts in 03_generate_secrets.sh to improve readability. - Removed unnecessary log messages related to Caddy installation and uninstallation in 03_generate_secrets.sh. - Updated 04_wizard.sh to include utility sourcing and improved logging for service selection and profile updates. - Streamlined apply_update.sh by removing redundant log messages regarding Supabase compose file checks.
This commit is contained in:
@@ -81,27 +81,27 @@ fi
|
||||
|
||||
# Run installation steps sequentially using their full paths
|
||||
|
||||
log_info "Step 1: System Preparation..."
|
||||
log_info "========== STEP 1: System Preparation =========="
|
||||
bash "$SCRIPT_DIR/01_system_preparation.sh" || { log_error "System Preparation failed"; exit 1; }
|
||||
log_success "System preparation complete!"
|
||||
|
||||
log_info "Step 2: Installing Docker..."
|
||||
log_info "========== STEP 2: Installing Docker =========="
|
||||
bash "$SCRIPT_DIR/02_install_docker.sh" || { log_error "Docker Installation failed"; exit 1; }
|
||||
log_success "Docker installation complete!"
|
||||
|
||||
log_info "Step 3: Generating Secrets and Configuration..."
|
||||
log_info "========== STEP 3: Generating Secrets and Configuration =========="
|
||||
bash "$SCRIPT_DIR/03_generate_secrets.sh" || { log_error "Secret/Config Generation failed"; exit 1; }
|
||||
log_success "Secret/Config Generation complete!"
|
||||
|
||||
log_info "Step 4: Running Service Selection Wizard..."
|
||||
log_info "========== STEP 4: Running Service Selection Wizard =========="
|
||||
bash "$SCRIPT_DIR/04_wizard.sh" || { log_error "Service Selection Wizard failed"; exit 1; }
|
||||
log_success "Service Selection Wizard complete!"
|
||||
|
||||
log_info "Step 5: Running Services..."
|
||||
log_info "========== STEP 5: Running Services =========="
|
||||
bash "$SCRIPT_DIR/05_run_services.sh" || { log_error "Running Services failed"; exit 1; }
|
||||
log_success "Running Services complete!"
|
||||
|
||||
log_info "Step 6: Generating Final Report..."
|
||||
log_info "========== STEP 6: Generating Final Report =========="
|
||||
# --- Installation Summary ---
|
||||
log_info "Installation Summary. The following steps were performed by the scripts:"
|
||||
log_success "- System updated and basic utilities installed"
|
||||
@@ -115,6 +115,4 @@ log_success "- Services launched via Docker Compose"
|
||||
bash "$SCRIPT_DIR/06_final_report.sh" || { log_error "Final Report Generation failed"; exit 1; }
|
||||
log_success "Final Report Generation complete!"
|
||||
|
||||
log_message "SUCCESS" "Installation process completed!"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user