Setup Script - Issue 91

This commit is contained in:
Mike Reeves
2019-11-04 11:50:39 -05:00
parent d658473485
commit bdb0efa153

View File

@@ -56,9 +56,9 @@ add_master_hostfile() {
"Enter your Master Server IP Address" 10 60 X.X.X.X 3>&1 1>&2 2>&3) "Enter your Master Server IP Address" 10 60 X.X.X.X 3>&1 1>&2 2>&3)
# Add the master to the host file if it doesn't resolve # Add the master to the host file if it doesn't resolve
if ! grep -q $MSRVIP /etc/hosts; then #if ! grep -q $MSRVIP /etc/hosts; then
echo "$MSRVIP $MSRV" >> /etc/hosts # echo "$MSRVIP $MSRV" >> /etc/hosts
fi #fi
} }
add_socore_user_master() { add_socore_user_master() {
@@ -968,7 +968,9 @@ set_hostname() {
echo $HOSTNAME > /etc/hostname echo $HOSTNAME > /etc/hostname
if [ $INSTALLTYPE != 'MASTERONLY' ] || [ $INSTALLTYPE != 'EVALMODE' ]; then if [ $INSTALLTYPE != 'MASTERONLY' ] || [ $INSTALLTYPE != 'EVALMODE' ]; then
if [[ $TESTHOST = *"not found"* ]]; then if [[ $TESTHOST = *"not found"* ]]; then
add_master_hostfile if ! grep -q $MSRVIP /etc/hosts; then
echo "$MSRVIP $MSRV" >> /etc/hosts
fi
fi fi
fi fi
@@ -1316,9 +1318,9 @@ whiptail_management_server() {
# See if it resolves. Otherwise prompt to add to host file # See if it resolves. Otherwise prompt to add to host file
TESTHOST=$(host $MSRV) TESTHOST=$(host $MSRV)
#if [[ $TESTHOST = *"not found"* ]]; then if [[ $TESTHOST = *"not found"* ]]; then
# add_master_hostfile add_master_hostfile
#fi fi
local exitstatus=$? local exitstatus=$?