mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #10769 from Security-Onion-Solutions/wtinstalltype
Wtinstalltype
This commit is contained in:
@@ -1002,7 +1002,6 @@ detect_os() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
info "Found OS: $OS $OSVER"
|
info "Found OS: $OS $OSVER"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
download_elastic_agent_artifacts() {
|
download_elastic_agent_artifacts() {
|
||||||
|
|||||||
@@ -64,6 +64,14 @@ done
|
|||||||
|
|
||||||
# Let's see what OS we are dealing with here
|
# Let's see what OS we are dealing with here
|
||||||
detect_os
|
detect_os
|
||||||
|
if [[ $not_supported ]]; then
|
||||||
|
if (whiptail_unsupported_os_warning); then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
info "User cancelled setup."
|
||||||
|
whiptail_cancel
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Check to see if this is the setup type of "desktop".
|
# Check to see if this is the setup type of "desktop".
|
||||||
is_desktop=
|
is_desktop=
|
||||||
|
|||||||
@@ -1426,6 +1426,27 @@ whiptail_ubuntu_warning() {
|
|||||||
whiptail --title "$whiptail_title" --msgbox "$message" 14 75
|
whiptail --title "$whiptail_title" --msgbox "$message" 14 75
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whiptail_unsupported_os_warning() {
|
||||||
|
|
||||||
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
|
read -r -d '' unsupported_os_continue <<- EOM
|
||||||
|
|
||||||
|
WARNING: An unsupported operating system has been detected.
|
||||||
|
Security Onion may not install or operate as expected.
|
||||||
|
|
||||||
|
Would you like to continue the install?
|
||||||
|
|
||||||
|
EOM
|
||||||
|
whiptail --title "$whiptail_title" \
|
||||||
|
--yesno "$unsupported_os_continue" 14 75 --defaultno
|
||||||
|
|
||||||
|
local exitstatus=$?
|
||||||
|
return $exitstatus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
whiptail_uppercase_warning() {
|
whiptail_uppercase_warning() {
|
||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
|
|||||||
Reference in New Issue
Block a user