Remove redundant log messages in scripts for improved clarity

- Eliminated unnecessary log_info statements in 03_generate_secrets.sh, 06_final_report.sh, and apply_update.sh to streamline output and enhance readability.
- Adjusted echo statements in 06_final_report.sh to maintain focus on essential information without clutter.
This commit is contained in:
Yury Kossakovsky
2025-05-23 17:37:27 -06:00
parent eeb19f590f
commit ab7997a4ca
3 changed files with 0 additions and 6 deletions

View File

@@ -238,7 +238,6 @@ else
read -p "Run $N8N_WORKER_COUNT_VALIDATED n8n worker(s)? (y/N): " confirm_workers
if [[ "$confirm_workers" =~ ^[Yy]$ ]]; then
N8N_WORKER_COUNT="$N8N_WORKER_COUNT_VALIDATED"
log_info "N8N_WORKER_COUNT set to $N8N_WORKER_COUNT."
break
else
log_info "Please try entering the number of workers again."

View File

@@ -43,8 +43,6 @@ is_profile_active() {
# Display credentials, checking if variables exist
echo
echo "======================================================================="
echo
log_info "Service Access Credentials. Save this information securely!"
# Display credentials, checking if variables exist

View File

@@ -69,7 +69,6 @@ if [ -f "$ENV_FILE" ]; then
N8N_WORKFLOWS_IMPORTED_EVER=$(grep "^N8N_WORKFLOWS_IMPORTED_EVER=" "$ENV_FILE" | cut -d'=' -f2 | tr -d '"' || echo "false")
if [[ "$N8N_WORKFLOWS_IMPORTED_EVER" == "true" ]]; then
log_info "n8n workflows have been imported previously. Skipping import prompt."
# Use a temporary file for sed portability
sed 's/^RUN_N8N_IMPORT=.*/RUN_N8N_IMPORT=false/' "$ENV_FILE" > "${ENV_FILE}.tmp" && mv "${ENV_FILE}.tmp" "$ENV_FILE" || {
log_error "Failed to set RUN_N8N_IMPORT=false in $ENV_FILE. Check permissions."
@@ -116,7 +115,6 @@ if [ -f "$ENV_FILE" ]; then
# Validate input: must be a positive integer
if [[ "$new_worker_count_raw" =~ ^[1-9][0-9]*$ ]]; then
NEW_WORKER_COUNT="$new_worker_count_raw"
log_info "Updating n8n worker count to $NEW_WORKER_COUNT in $ENV_FILE..."
# Use a temporary file for sed portability (-i needs backup suffix on macOS without -e)
sed "s/^N8N_WORKER_COUNT=.*/N8N_WORKER_COUNT=\"$NEW_WORKER_COUNT\"/" "$ENV_FILE" > "${ENV_FILE}.tmp" && mv "${ENV_FILE}.tmp" "$ENV_FILE" || {
log_error "Failed to update N8N_WORKER_COUNT in $ENV_FILE. Check permissions."
@@ -150,7 +148,6 @@ bash "$RUN_SERVICES_SCRIPT" || { log_error "Failed to start services. Check logs
log_success "Update application completed successfully!"
# --- Display Final Report with Credentials ---
log_info "Displaying service credentials and report..."
bash "$SCRIPT_DIR/06_final_report.sh" || {
log_warning "Failed to display the final report. This does not affect the update."
# We don't exit 1 here as the update itself was successful.