only allow existing deployment for focal

This commit is contained in:
m0duspwnens
2023-07-19 15:38:18 -04:00
parent 77c9b4fb54
commit 19c6796927

View File

@@ -584,18 +584,18 @@ whiptail_install_type_dist() {
[ -n "$TESTING" ] && return
# if [[ $is_rocky || $is_centos ]]; then
if [[ "$OSVER" != "focal" ]]; then
dist_option=$(whiptail --title "$whiptail_title" --menu "Do you want to start a new deployment or join this box to \nan existing deployment?" 11 75 2 \
"New Deployment " "Create a new Security Onion deployment" \
"Existing Deployment " "Join to an existing Security Onion deployment " \
3>&1 1>&2 2>&3
)
# elif [[ $is_ubuntu ]]; then
# dist_option=$(whiptail --title "$whiptail_title" --menu "Since this is Ubuntu, this box can only be connected to \nan existing deployment." 11 75 2 \
# "Existing Deployment " "Join to an existing Security Onion deployment " \
# 3>&1 1>&2 2>&3
# )
# fi
elif [[ "$OSVER" == "focal" ]]; then
dist_option=$(whiptail --title "$whiptail_title" --menu "Since this is Ubuntu, this box can only be connected to \nan existing deployment." 11 75 2 \
"Existing Deployment " "Join to an existing Security Onion deployment " \
3>&1 1>&2 2>&3
)
fi
local exitstatus=$?
whiptail_check_exitstatus $exitstatus