mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Make manager hostname error more specific
This commit is contained in:
@@ -470,11 +470,16 @@ collect_int_ip_mask() {
|
||||
collect_mngr_hostname() {
|
||||
whiptail_management_server
|
||||
|
||||
while ! valid_hostname "$MSRV" || [[ $MSRV == "$HOSTNAME" || $MSRVIP == "localhost" ]]; do
|
||||
while ! valid_hostname "$MSRV"; do
|
||||
whiptail_invalid_hostname
|
||||
whiptail_management_server "$MSRV"
|
||||
done
|
||||
|
||||
while [[ $MSRV == "$HOSTNAME" || $MSRVIP == "localhost" ]]; do
|
||||
whiptail_invalid_hostname 0
|
||||
whiptail_management_server "$MSRV"
|
||||
done
|
||||
|
||||
if ! getent hosts "$MSRV"; then
|
||||
whiptail_manager_ip
|
||||
|
||||
|
||||
Reference in New Issue
Block a user