[fix] Don't preset HOSTNAME var, interferes with automation

This commit is contained in:
William Wernert
2021-01-15 16:22:07 -05:00
parent 432d231a0e
commit 8cb836a17a
2 changed files with 3 additions and 3 deletions

View File

@@ -1273,6 +1273,9 @@ whiptail_set_hostname() {
[ -n "$TESTING" ] && return
HOSTNAME=$(cat /etc/hostname)
if [[ "$HOSTNAME" == *'localhost'* ]]; then HOSTNAME=securityonion; fi
HOSTNAME=$(whiptail --title "Security Onion Setup" --inputbox \
"Enter the hostname (not FQDN) you would like to set:" 10 75 "$HOSTNAME" 3>&1 1>&2 2>&3)