mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Setup Script - Issue 91
This commit is contained in:
@@ -966,6 +966,11 @@ set_hostname() {
|
||||
echo "127.0.0.1 $HOSTNAME $HOSTNAME.localdomain localhost localhost.localdomain localhost4 localhost4.localdomain" > /etc/hosts
|
||||
echo "::1 localhost localhost.localdomain localhost6 localhost6.localdomain6" >> /etc/hosts
|
||||
echo $HOSTNAME > /etc/hostname
|
||||
if [ $INSTALLTYPE != 'MASTERONLY' ] || [ $INSTALLTYPE != 'EVALMODE' ]; then
|
||||
if [[ $TESTHOST = *"not found"* ]]; then
|
||||
add_master_hostfile
|
||||
fi
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
@@ -1311,9 +1316,9 @@ whiptail_management_server() {
|
||||
# See if it resolves. Otherwise prompt to add to host file
|
||||
TESTHOST=$(host $MSRV)
|
||||
|
||||
if [[ $TESTHOST = *"not found"* ]]; then
|
||||
add_master_hostfile
|
||||
fi
|
||||
#if [[ $TESTHOST = *"not found"* ]]; then
|
||||
# add_master_hostfile
|
||||
#fi
|
||||
|
||||
|
||||
local exitstatus=$?
|
||||
|
||||
Reference in New Issue
Block a user