PURPOSE_="Generate config files needed for Evergreen-ILS Cluster"
SYNOPSIS_="$NAME_"
REQUIRES_="standard GNU commands, apt, dpkg"
- VERSION_="1.33"
- DATE_="2010-09-23; last update: 2014-05-19"
+ VERSION_="1.34"
+ DATE_="2010-09-23; last update: 2014-07-08"
AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
URL_="http://evergreen-ils.org"
CATEGORY_="devel"
echo -en $COL_BR_CYAN
read -n 1 -p "[y/n] :" GENERATE_BRICKS_IPS
echo -e $COL_RESET
-echo generate bricks ips: $GENERATE_BRICKS_IPS
case $GENERATE_BRICKS_IPS in
[Yy]* ) echo ; break;;
[Nn]* ) echo ; break;;
esac
done
-echo generate bricks ips: $GENERATE_BRICKS_IPS
}
Get_Brick_IP_Addresses () { ### Get IP addresses for the bricks.
### Prompt to get hostname prefix
-if [ -z "$HOSTNAME_PREFIX" ] || [ "$USE_CONFIG_FILE" == "0" ]
+if [ -z "$USE_HOSTNAME_PREFIX" ] || [ "$USE_CONFIG_FILE" == "0" ]
+then
+ if [ -z "$HOSTNAME_PREFIX" ] || [ "$USE_CONFIG_FILE" == "0" ]
then
Get_Hostname_Prefix
+ fi
fi
Write_Config_File USE_HOSTNAME_PREFIX
Write_Config_File HOSTNAME_PREFIX