mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
If contains localhost don't allow to move forward
This commit is contained in:
@@ -672,7 +672,7 @@ whiptail_set_hostname() {
|
|||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
|
||||||
while [[ "$HOSTNAME" == 'localhost' ]] ; do
|
while [[ "$HOSTNAME" == *'localhost'* ]] ; do
|
||||||
whiptail --title "Security Onion Setup" --msgbox "Please choose a hostname that isn't localhost." 8 75
|
whiptail --title "Security Onion Setup" --msgbox "Please choose a hostname that isn't localhost." 8 75
|
||||||
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||||
"Enter the Hostname you would like to set." 10 75 $HOSTNAME 3>&1 1>&2 2>&3)
|
"Enter the Hostname you would like to set." 10 75 $HOSTNAME 3>&1 1>&2 2>&3)
|
||||||
|
|||||||
Reference in New Issue
Block a user