mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Setup Script - added fallback menu
This commit is contained in:
@@ -308,6 +308,10 @@ whiptail_install_type() {
|
|||||||
"MASTERONLY" "Start a new grid" OFF \
|
"MASTERONLY" "Start a new grid" OFF \
|
||||||
"STORAGENODE" "Add a Storage Node" OFF 3>&1 1>&2 2>&3 )
|
"STORAGENODE" "Add a Storage Node" OFF 3>&1 1>&2 2>&3 )
|
||||||
|
|
||||||
|
local exitstatus=$?
|
||||||
|
if [[ "$exitstatus" = 1 ]]; then
|
||||||
|
whiptail_menu
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_management_nic() {
|
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() {
|
whiptail_nids() {
|
||||||
|
|
||||||
NIDS=$(whiptail --title "Security Onion Setup" --radiolist \
|
NIDS=$(whiptail --title "Security Onion Setup" --radiolist \
|
||||||
|
|||||||
Reference in New Issue
Block a user