Setup Script - added fallback menu

This commit is contained in:
Mike Reeves
2018-03-23 15:07:56 -04:00
parent 94f5830a88
commit 7109598748

View File

@@ -308,6 +308,10 @@ whiptail_install_type() {
"MASTERONLY" "Start a new grid" OFF \
"STORAGENODE" "Add a Storage Node" OFF 3>&1 1>&2 2>&3 )
local exitstatus=$?
if [[ "$exitstatus" = 1 ]]; then
whiptail_menu
fi
}
whiptail_management_nic() {
@@ -316,6 +320,17 @@ whiptail_management_nic() {
}
whiptail_menu() {
MENU=$(whiptail --title "Menu example" --menu "Choose an option" 25 78 16 \
"<-- Back" "Return to the main menu." \
"Add User" "Add a user to the system." \
"Modify User" "Modify an existing user." \
"List Users" "List all users on the system." \
"Add Group" "Add a user group to the system." \
"Modify Group" "Modify a group and its list of members." \
"List Groups" "List all groups on the system.")
}
whiptail_nids() {
NIDS=$(whiptail --title "Security Onion Setup" --radiolist \