From 575694f5663475f09e0a843ba351eca5e493a03f Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Wed, 19 Feb 2014 08:52:32 -0500 Subject: [PATCH] update gateway prompts. --- GenaSYS.sh | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index a431bc5..693a34b 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -26,7 +26,7 @@ SYNOPSIS_="$NAME_" REQUIRES_="standard GNU commands, apt, dpkg" VERSION_="1.31" - DATE_="2010-09-23; last update: 2014-02-17" + DATE_="2010-09-23; last update: 2014-02-19" AUTHOR_="Andy Witter " URL_="http://evergreen-ils.org" CATEGORY_="devel" @@ -687,10 +687,25 @@ echo "The gateways on both sides of the router will need to" echo "be configured for the hosts in the cluster." echo echo -e "Enter the gateway address for the" ${COL_BR_RED}"DMZ"${COL_RESET} "network" "(${COL_BR_RED}${DMZ_NET}${COL_RESET}): " -read -p ">> " DMZ_GATEWAY +echo -e $COL_BR_CYAN +read -p "eg. ${DMZ_NET}.1 >> " DMZ_GATEWAY +[ -z "$DMZ_GATEWAY" ] && DMZ_GATEWAY="${DMZ_NET}.1" +echo "Using $DMZ_GATEWAY" +echo -e $COL_RESET +sleep 1 echo -echo -e "Enter the gateway address for the" ${COL_BR_GREEN}"private network"${COL_RESET} "network" "(${COL_BR_GREEN}${PRIVATENET}${COL_RESET}): " -read -p ">> " PRIVATENET_GATEWAY +if [ "$USE_STANDARD_PRIVATE_NETWORK" = "y" ] || [ "$USE_STANDARD_PRIVATE_NETWORK" = "Y" ] +then + PRIVATENET_GATEWAY="${PRIVATENET}.1" +else + echo -e "Enter the gateway address for the" ${COL_BR_GREEN}"private network"${COL_RESET} "network" "(${COL_BR_GREEN}${PRIVATENET}${COL_RESET}): " + echo -e $COL_BR_CYAN + read -p "eg. ${PRIVATENET}.1 >> " PRIVATENET_GATEWAY + [ -z "$PRIVATENET_GATEWAY" ] && PRIVATENET_GATEWAY="${PRIVATENET}.1" + echo "Using $PRIVATENET_GATEWAY" + echo -e $COL_RESET + sleep 1 +fi } Choose_Private_Net () { ### Default Private Network Configuration. -- 2.11.0