mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-31 21:33:20 +01:00
[fix] Add check for TESTHOST being blank, only install packages before setup if missing
This commit is contained in:
@@ -515,7 +515,7 @@ whiptail_management_server() {
|
||||
# See if it resolves. Otherwise prompt to add to host file
|
||||
TESTHOST=$(host "$MSRV")
|
||||
|
||||
if [[ $TESTHOST = *"not found"* ]] || [ -z "$TESTHOST" ] || [[ $TESTHOST = *"connection timed out"* ]]; then
|
||||
if [[ $TESTHOST = *"not found"* ]] || [ -z "$TESTHOST" ] || [[ $TESTHOST = *"connection timed out"* ]] || [[ "$TESTHOST" = '' ]]; then
|
||||
add_master_hostfile
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user