From d9b4c09cf06924bbe43b46a82810544862958fcf Mon Sep 17 00:00:00 2001 From: William Wernert Date: Thu, 11 Feb 2021 10:52:18 -0500 Subject: [PATCH] [fix] Don't show irrelevant prompts during airgap setup --- setup/so-setup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup/so-setup b/setup/so-setup index beb9b40a3..5f0501dce 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -379,6 +379,10 @@ if [[ $is_import ]]; then PLAYBOOK=0 fi +if [[ $is_airgap ]]; then + PATCHSCHEDULENAME=manual +fi + # Start user prompts if [[ $is_helix ]]; then @@ -393,7 +397,7 @@ if [[ $is_helix || $is_sensor || $is_import ]]; then calculate_useable_cores fi -if [[ ! $is_import ]]; then +if [[ ! $is_airgap && ! $is_import ]]; then collect_patch_schedule fi @@ -446,7 +450,7 @@ if [[ $is_manager || $is_import ]]; then get_redirect fi -if [[ $is_distmanager || ( $is_sensor || $is_node || $is_fleet_standalone ) && ! $is_eval ]]; then +if [[ ! $is_airgap && $is_distmanager || ( $is_sensor || $is_node || $is_fleet_standalone ) && ! $is_eval ]]; then whiptail_manager_updates if [[ $setup_type == 'network' && $MANAGERUPDATES == 1 ]]; then whiptail_manager_updates_warning