PURPOSE_="Generate config files needed for Evergreen-ILS Cluster"
SYNOPSIS_="$NAME_"
REQUIRES_="standard GNU commands, apt, dpkg"
- VERSION_="1.40"
- DATE_="2010-09-23; last update: 2014-10-21"
+ VERSION_="1.50"
+ DATE_="2010-09-23; last update: 2015-09-09"
AUTHOR_="Andy Witter <awitter@georgialibraries.org>"
URL_="http://evergreen-ils.org"
CATEGORY_="devel"
WD=$(dirname $(readlink -f $0))
CUSTOMDIR="$WD/custom"
-EG_VERSION="2.7.1a"
+EG_VERSION="2.9.0"
UBUNTU_CODENAME="precise"
LICENSE="$WD/License.txt"
TEMPLATEDIR="$WD/templates"
TMPMUNINCONF="${TMPFOLDER}/munin.conf"
TMPGLUSTERNODES="${TMPFOLDER}/gluster_nodes.txt"
TMPGLUSTERCLIENTS="${TMPFOLDER}/gluster_clients.txt"
-PSQL_VERSION="9.1"
+PSQL_VERSION="9.3"
[ -z $CONFIG_FILE ] && CONFIG_FILE="$WD/genasys.conf"
NEW_CONFIG_FILE="$OUTDIR/genasys.conf"
CERT_DIR="${OUTDIR}/ssl_cert"
-ntp make gdebi-core nfs-common postgresql-plperl-9.1 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
+ntp make gdebi-core nfs-common postgresql-plperl-9.3 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
-ntp make gdebi-core nfs-common postgresql-plperl-9.1 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
+ntp make gdebi-core nfs-common postgresql-plperl-9.3 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
-ntp make gdebi-core nfs-common postgresql-plperl-9.1 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
+ntp make gdebi-core nfs-common postgresql-plperl-9.3 nagios-nrpe-server sysstat munin-node munin-plugins-extra libwww-perl
--- /dev/null
+-- This file is intended to be called by eg_db_config.pl
+
+-- If manually calling:
+-- Connect to the postgres database initially
+-- Specify the database to create as -vdb_name=DATABASE
+-- Specify the postgres contrib directory as -vcontrib_dir=CONTRIBDIR
+-- You can get the contrib directory using pg_config --sharedir and adding a /contrib to it
+
+-- NOTE: This file does not do transactions
+-- This is intentional. Please do not wrap in BEGIN/COMMIT.
+DROP DATABASE IF EXISTS :db_name;
+
+CREATE DATABASE :db_name TEMPLATE template0 ENCODING 'UNICODE' LC_COLLATE 'C' LC_CTYPE 'C';
+
+\connect :db_name
+
+CREATE LANGUAGE plperlu;
+
+CREATE EXTENSION tablefunc;
+CREATE EXTENSION xml2;
+CREATE EXTENSION hstore;
+CREATE EXTENSION intarray;
PG_Deps_Warning () { ### Dependency install error message
echo
echo "*********"
- echo "WARNING!! Failed to install: libpq5 libpq-dev postgresql-client-9.1"
+ echo "WARNING!! Failed to install: libpq5 libpq-dev postgresql-client-9.3"
echo "*********"
sleep 5
}
### Evergreen Version
EG_VER="_EGVER"
### Postgres Version
-PG_VER="9.1"
+PG_VER="9.3"
### GenaSYS Version
VERSION="_GENVER"