Setup Script - Issue 91

This commit is contained in:
Mike Reeves
2019-11-04 09:47:45 -05:00
parent 48f4637a70
commit 47be406075

View File

@@ -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=$?