warn of unsupported os

This commit is contained in:
m0duspwnens
2023-07-13 16:38:51 -04:00
parent f0c391e801
commit 4158e18675
3 changed files with 29 additions and 8 deletions
+21
View File
@@ -1426,6 +1426,27 @@ whiptail_ubuntu_warning() {
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() {
[ -n "$TESTING" ] && return