Add UI tool availability check before running wizard

- Menu now checks for whiptail/dialog before launching wizard
- Prevents wizard crashes due to missing UI dependencies
- Provides clear error message and installation instructions
This commit is contained in:
Kelin
2026-01-29 22:41:31 -05:00
parent 8b89575bbb
commit 1225564694

View File

@@ -256,6 +256,13 @@ handle_config_menu() {
print_info "Starting interactive pre-deployment wizard..." print_info "Starting interactive pre-deployment wizard..."
print_info "The wizard will run and return to this menu when complete." print_info "The wizard will run and return to this menu when complete."
echo echo
# Check if UI tools are available
if ! command_exists whiptail && ! command_exists dialog; then
print_error "Pre-deployment wizard requires whiptail or dialog to be installed"
print_info "Install with: sudo apt install whiptail"
read -rp "Press Enter to continue..."
continue
fi
read -rp "Press Enter to continue..." read -rp "Press Enter to continue..."
if ./pre-deployment-wizard.sh; then if ./pre-deployment-wizard.sh; then
print_success "Pre-deployment wizard completed successfully" print_success "Pre-deployment wizard completed successfully"