PURPOSE_="Generate config files needed for Evergreen-ILS Cluster"
SYNOPSIS_="$NAME_"
REQUIRES_="standard GNU commands, apt, dpkg"
- VERSION_="1.08"
- DATE_="2010-09-18; last update: 2013-05-15"
+ VERSION_="1.09"
+ DATE_="2010-09-18; last update: 2013-05-16"
AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
URL_="http://evergreen-ils.org"
CATEGORY_="devel"
if echo ${SUBFOLDER} | grep -q head
then
cp -f $TEMPLATEDIR/setup_brick_to_drone_sshkeys.sh ../setup_${SUBFOLDER}/setup_${SUBFOLDER}_to_drone_sshkeys.sh
- cp -f $TEMPLATEDIR/db/eg_db_config.pl ../setup_${SUBFOLDER}
+ #cp -f $TEMPLATEDIR/db/eg_db_config.pl ../setup_${SUBFOLDER}
[ -e "${CUSTOMDIR}/lib_ips.txt" ] && cp "${CUSTOMDIR}/lib_ips.txt" ../setup_${SUBFOLDER}
sed -i "s^brick_drones.txt^${SUBFOLDER}_drones.txt^g" ../setup_${SUBFOLDER}/setup_${SUBFOLDER}_to_drone_sshkeys.sh
sed -i "s^MASTER_DB^$MASTER_DB^g" setup-head.sh
Prep_DB_9_X () { #Prepare the database schema
-/openils/bin/eg_db_config.pl --service all --create-schema --create-offline --create-database \
+/openils/bin/eg_db_config --service all --create-schema --create-offline --create-database \
--user EG_DB_USER --password EG_DB_PASSWORD --hostname MASTER_DB.CLUSTER_DOMAINNAME --port 5432 \
--database evergreen --admin-user EG_ADMIN_USER --admin-pass EG_ADMIN_PASS
### create opensrf offline configuraton.
echo "Creating opensrf offline configuration."
-su - opensrf -c "/openils/bin/eg_db_config.pl --create-offline"
+su - opensrf -c "/openils/bin/eg_db_config --create-offline"
### setup ldiretor ping file
echo "pong" > /openils/var/web/ldirectorping.txt-
### Setup offline for all OpenSRF nodes.
if [ "$OSRF_NODE" = "1" ]
then
- su - opensrf -c eg_db_config.pl --create-offline
+ su - opensrf -c eg_db_config --create-offline
fi
### Display LVS Notes.