mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
different whiptail warning if ubuntu 20.04
This commit is contained in:
@@ -417,7 +417,7 @@ set_minionid() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_palette() {
|
set_palette() {
|
||||||
if [[ $is_ubuntu ]]; then
|
if [[ $is_deb ]]; then
|
||||||
update-alternatives --set newt-palette /etc/newt/palette.original
|
update-alternatives --set newt-palette /etc/newt/palette.original
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,11 +69,20 @@ detect_os
|
|||||||
set_palette >> $setup_log 2>&1
|
set_palette >> $setup_log 2>&1
|
||||||
|
|
||||||
if [[ $not_supported ]]; then
|
if [[ $not_supported ]]; then
|
||||||
if (whiptail_unsupported_os_warning); then
|
if [[ "$OSVER" == "focal" ]]; then
|
||||||
true
|
if (whiptail_focal_warning); then
|
||||||
|
true
|
||||||
|
else
|
||||||
|
info "User cancelled setup."
|
||||||
|
whiptail_cancel
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
info "User cancelled setup."
|
if (whiptail_unsupported_os_warning); then
|
||||||
whiptail_cancel
|
true
|
||||||
|
else
|
||||||
|
info "User cancelled setup."
|
||||||
|
whiptail_cancel
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -455,6 +455,28 @@ __append_end_msg() {
|
|||||||
EOM
|
EOM
|
||||||
}
|
}
|
||||||
|
|
||||||
|
whiptail_focal_warning() {
|
||||||
|
|
||||||
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
|
read -r -d '' focal_warning_continue <<- EOM
|
||||||
|
|
||||||
|
WARNING: Ubuntu 20.04 is only supported as a minion role.
|
||||||
|
|
||||||
|
This node may not install or operate as expected if installed
|
||||||
|
as a manager, managersearch, standalone, eval, or import.
|
||||||
|
|
||||||
|
Would you like to continue the install?
|
||||||
|
|
||||||
|
EOM
|
||||||
|
whiptail --title "$whiptail_title" \
|
||||||
|
--yesno "$focal_warning_continue" 14 75 --defaultno
|
||||||
|
|
||||||
|
local exitstatus=$?
|
||||||
|
return $exitstatus
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
whiptail_gauge_post_setup() {
|
whiptail_gauge_post_setup() {
|
||||||
|
|
||||||
if [ -n "$TESTING" ]; then
|
if [ -n "$TESTING" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user