Update airgap question to ask during minion installs too

This commit is contained in:
William Wernert
2021-04-09 10:00:50 -04:00
parent 9b5276f1ab
commit fc9df2bbae
2 changed files with 6 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ elif [ "$install_type" = 'ANALYST' ]; then
fi fi
# Check if this is an airgap install # Check if this is an airgap install
if [[ ( $is_manager || $is_import ) && $is_iso ]]; then if [[ $is_iso || $is_minion ]]; then
whiptail_airgap whiptail_airgap
if [[ "$INTERWEBS" == 'AIRGAP' ]]; then if [[ "$INTERWEBS" == 'AIRGAP' ]]; then
is_airgap=true is_airgap=true

View File

@@ -19,10 +19,13 @@ whiptail_airgap() {
[ -n "$TESTING" ] && return [ -n "$TESTING" ] && return
local node_str='node'
[[ $is_manager || $is_import ]] && node_str='manager'
INTERWEBS=$(whiptail --title "Security Onion Setup" --radiolist \ INTERWEBS=$(whiptail --title "Security Onion Setup" --radiolist \
"Choose your install conditions:" 20 75 4 \ "Choose your install conditions:" 20 75 4 \
"STANDARD" "This manager has internet accesss" ON \ "STANDARD" "This $node_str has internet accesss" ON \
"AIRGAP" "This manager does not have internet access" OFF 3>&1 1>&2 2>&3 ) "AIRGAP" "This $node_str does not have internet access" OFF 3>&1 1>&2 2>&3 )
local exitstatus=$? local exitstatus=$?
whiptail_check_exitstatus $exitstatus whiptail_check_exitstatus $exitstatus