From 19c679692737d48fc0a87bec511d2cb3a495eb05 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 19 Jul 2023 15:38:18 -0400 Subject: [PATCH] only allow existing deployment for focal --- setup/so-whiptail | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index 1a6aaa09d..86302ae08 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -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