mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-17 06:22:53 +01:00
Update Validation
This commit is contained in:
@@ -1504,7 +1504,13 @@ networking_needful() {
|
|||||||
if [[ $reinit_networking ]] || ! [[ -f $net_init_file ]]; then
|
if [[ $reinit_networking ]] || ! [[ -f $net_init_file ]]; then
|
||||||
collect_hostname
|
collect_hostname
|
||||||
fi
|
fi
|
||||||
[[ ! ( $is_eval || $is_import ) ]] && whiptail_node_description
|
if [[ ! ( $is_eval || $is_import ) ]]; then
|
||||||
|
whiptail_node_description
|
||||||
|
while [[ "$NODE_DESCRIPTION" =~ [[:cntrl:]] ]]; do
|
||||||
|
whiptail_error_message "Node description cannot contain control characters. Please enter a new description."
|
||||||
|
whiptail_node_description
|
||||||
|
done
|
||||||
|
fi
|
||||||
if [[ $reinit_networking ]] || ! [[ -f $net_init_file ]]; then
|
if [[ $reinit_networking ]] || ! [[ -f $net_init_file ]]; then
|
||||||
network_init_whiptail
|
network_init_whiptail
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user