update gateway prompts.
authorAndy Witter <awitter@georgialibraries.org>
Wed, 19 Feb 2014 13:52:32 +0000 (08:52 -0500)
committerAndy Witter <awitter@georgialibraries.org>
Wed, 19 Feb 2014 13:52:32 +0000 (08:52 -0500)
GenaSYS.sh

index a431bc5..693a34b 100755 (executable)
@@ -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 <awitter@georgialibraries.org>"
         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.