exit;
fi;
-
# -----------------------------------------------------------------------
# force CPAN to load by installing something that should already be installed
cpan Fcntl
# CPAN follow pre-reqs?
-cpan_policy=$(perl -MCPAN::Config -e 'print $CPAN::Config->{prerequisites_policy}');
-if [ $cpan_policy != 'follow' ]; then
+if [ ! "$(echo 'o conf prerequisites_policy' | cpan | grep follow)" ]; then
echo '
-----------------------------------------------------------------------
cp $BASE_DIR/evergreen.ld.conf /etc/ld.so.conf.d/
ldconfig;
-# Configure rsyslog and restart
-cp $BASE_DIR/evergreen-rsyslog.conf /etc/rsyslog.d/evergreen.conf
-/etc/init.d/rsyslog restart
-
# Create opensrf user and set up environment
if [ ! "$(grep ^opensrf: /etc/passwd)" ]; then
useradd -m -s /bin/bash opensrf
make -f /home/opensrf/OpenSRF/src/extras/Makefile.install debian-squeeze
make -f /home/opensrf/Evergreen/Open-ILS/src/extras/Makefile.install debian-squeeze install_pgsql_server_backport_debs_91
+# Configure rsyslog and restart
+cp /home/opensrf/Evergreen/Open-ILS/examples/evergreen-rsyslog.conf /etc/rsyslog.d/evergreen.conf
+/etc/init.d/rsyslog restart
+
# Patch Ejabberd and register users
if [ ! "$(grep 'public.localhost' /etc/ejabberd/ejabberd.cfg)" ]; then
# Build and install OpenSRF
OSRF_COMMAND='
cd /home/opensrf/OpenSRF;
-./autogen.sh;
+autoreconf -i;
./configure --prefix=/openils --sysconfdir=/openils/conf;
make;'
# Build and install the ILS
OSRF_COMMAND='
cd /home/opensrf/Evergreen;
-./autogen.sh;
+autoreconf -i;
./configure --prefix=/openils --sysconfdir=/openils/conf;
make;'
+++ /dev/null
-# OpenSRF rsyslog configuration file
-# Bill Erickson <berick@esilibrary.com>
-#
-# /etc/rsyslog.d/opensrf-rsyslog.conf
-#
-
-$EscapeControlCharactersOnReceive off
-
-# Message format templates
-# TIMESTAMP:::date-pgsql == YYYY-MM-DD HH:MM:SS
-$template msgformat,"%TIMESTAMP:::date-pgsql% %HOSTNAME% %syslogtag%%msg:::drop-last-lf%\n"
-
-# Log file templates -------
-$template osrfsys,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/osrfsys.%$HOUR%.log"
-$template osrferror,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/osrferror.log"
-$template osrfwarn,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/osrfwarn.log"
-$template activity,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/activity.log"
-$template gateway,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/gateway.%$HOUR%.log"
-$template router,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/router.log"
-$template pg,"/var/log/evergreen/%$YEAR%/%$MONTH%/%$DAY%/pg.%$HOUR%.log"
-
-# Selectors ----------------
-# local0 : OpenSRF
-# local1 : OpenSRF "activity"
-# local2 : OpenSRF router
-# local6 : Apache
-
-local0.* ?osrfsys;msgformat
-local1.* ?activity;msgformat
-local2.* ?router:msgformat
-local3.* ?pg:msgformat
-local6.* ?gateway;msgformat
-
-# Warn
-local0.warn ?osrfwarn;msgformat
-local1.warn ?osrfwarn;msgformat
-local2.warn ?osrfwarn;msgformat
-local3.warn ?osrfwarn;msgformat
-local6.warn ?osrfwarn;msgformat
-
-# Error
-local0.error ?osrferror;msgformat
-local1.error ?osrferror;msgformat
-local2.error ?osrferror;msgformat
-local3.error ?osrferror;msgformat
-local6.error ?osrferror;msgformat