From f51cda8e2097444976bab041b8da3b6525fc788a Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 27 Aug 2025 13:55:42 -0600 Subject: [PATCH] Enhance service selection wizard and update PaddleOCR details in final report - Adjusted the service selection wizard to dynamically set the height of the checklist based on the number of services. - Updated final report script to provide clearer API access information for PaddleOCR, distinguishing between external and internal access. --- scripts/04_wizard.sh | 4 +++- scripts/06_final_report.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/04_wizard.sh b/scripts/04_wizard.sh index cced2f8..af3f5fb 100755 --- a/scripts/04_wizard.sh +++ b/scripts/04_wizard.sh @@ -105,8 +105,10 @@ while [ $idx -lt ${#base_services_data[@]} ]; do done # Use whiptail to display the checklist +num_services=$(( ${#services[@]} / 3 )) +list_height=$(( num_services + 4 )) CHOICES=$(whiptail --title "Service Selection Wizard" --checklist \ - "Choose the services you want to deploy.\nUse ARROW KEYS to navigate, SPACEBAR to select/deselect, ENTER to confirm." 32 90 22 \ + "Choose the services you want to deploy.\nUse ARROW KEYS to navigate, SPACEBAR to select/deselect, ENTER to confirm." 32 90 $list_height \ "${services[@]}" \ 3>&1 1>&2 2>&3) diff --git a/scripts/06_final_report.sh b/scripts/06_final_report.sh index 4df5943..bfe0f73 100755 --- a/scripts/06_final_report.sh +++ b/scripts/06_final_report.sh @@ -200,7 +200,8 @@ if is_profile_active "paddleocr"; then echo "================================= PaddleOCR ===========================" echo echo "Host: ${PADDLEOCR_HOSTNAME:-}" - echo "Internal Access (HTTP): http://paddleocr:8080" + echo "API (external via Caddy): https://${PADDLEOCR_HOSTNAME:-}" + echo "API (internal): http://paddleocr:8080" echo "Notes: PaddleX Basic Serving (CPU), pipeline=OCR" fi