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"
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.