mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Update airgap question to ask during minion installs too
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user