[open-ils-commits] r658 - ESI-Examples/trunk/tools/eg_dev_lenny_installer (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 8 17:48:33 EDT 2009
Author: erickson
Date: 2009-09-08 17:48:27 -0400 (Tue, 08 Sep 2009)
New Revision: 658
Modified:
ESI-Examples/trunk/tools/eg_dev_lenny_installer/eg_dev_lenny_installer.sh
Log:
repaired dojo download probs. made ld.so.conf settings use an external file instead of updating ld.so.conf directly. added some more comments and notes
Modified: ESI-Examples/trunk/tools/eg_dev_lenny_installer/eg_dev_lenny_installer.sh
===================================================================
--- ESI-Examples/trunk/tools/eg_dev_lenny_installer/eg_dev_lenny_installer.sh 2009-09-07 14:31:49 UTC (rev 657)
+++ ESI-Examples/trunk/tools/eg_dev_lenny_installer/eg_dev_lenny_installer.sh 2009-09-08 21:48:27 UTC (rev 658)
@@ -14,28 +14,27 @@
# GNU General Public License for more details.
# -----------------------------------------------------------------------
-DOJO='dojo-release-1.3.2';
+DOJO_VERSION='1.3.2';
+
# If you change the jabber password, you will need to
# edit opensrf_core.xml and srfsh.xml accordingly
JABBER_PASSWORD='password'
+
BASE_DIR=$PWD
+
# And they're off...
# Install some essential tools
apt-get update;
-apt-get dist-upgrade;
+apt-get -yq dist-upgrade;
apt-get -yq install vim build-essential syslog-ng psmisc automake ntpdate subversion;
ntpdate pool.ntp.org
+cp $BASE_DIR/evergreen.ld.conf /etc/ld.so.conf.d/
+ldconfig;
-# Update ldconfig
-if [ ! "$(grep openils /etc/ld.so.conf)" ]; then
- echo -e "/openils/lib\n/usr/local/lib\n/usr/local/lib/dbd" >> /etc/ld.so.conf
- ldconfig
-fi;
-
# Create opensrf user and set up environment
if [ ! "$(grep ^opensrf: /etc/passwd)" ]; then
useradd -m -s /bin/bash opensrf
@@ -115,15 +114,16 @@
# fetch and install Dojo
cd /tmp;
-wget "http://download.dojotoolkit.org/$DOJO/$DOJO.tar.gz";
-tar -zxf $DOJO.tar.gz;
-cp -r $DOJO/* /openils/var/web/js/dojo/;
+wget "http://download.dojotoolkit.org/release-$DOJO_VERSION/dojo-release-$DOJO_VERSION.tar.gz";
+tar -zxf dojo-release-$DOJO_VERSION.tar.gz;
+cp -r dojo-release-$DOJO_VERSION/* /openils/var/web/js/dojo/;
# give it all to opensrf
chown -R opensrf:opensrf /openils
# copy srfsh config into place
-su - opensrf sh -c "cp /openils/conf/srfsh.xml.example /home/opensrf/.srfsh.xml";
+cp /openils/conf/srfsh.xml.example /home/opensrf/.srfsh.xml;
+chown opensrf:opensrf /home/opensrf/.srfsh.xml;
# Create the DB
PG_COMMAND='
@@ -134,8 +134,8 @@
psql -f /usr/share/postgresql/8.3/contrib/tablefunc.sql evergreen;
psql -f /usr/share/postgresql/8.3/contrib/tsearch2.sql evergreen;
psql -f /usr/share/postgresql/8.3/contrib/pgxml.sql evergreen;
+echo -e "\n\nPlease enter a password for the evergreen database user. If you do not want to edit configs, use \"evergreen\"\n"
createuser -P -s evergreen;'
-echo -e "\n\nBe prepared to enter a password for the evergreen DB user. If you don't want to edit configs, use 'evergreen'\n"
su - postgres sh -c "$PG_COMMAND"
# Apply the DB schema
@@ -150,7 +150,7 @@
cp Open-ILS/examples/apache/startup.pl /etc/apache2/
mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
-echo -e "\nConfiguring a temporary SSL certificate....\n";
+echo -e "\n\nConfiguring a temporary SSL certificate....\n";
openssl req -new -x509 -days 365 -nodes -out server.crt -keyout server.key
a2enmod ssl
a2enmod rewrite
@@ -159,14 +159,29 @@
cat <<EOF
-Now do this, and then some other stuff:
+* Add these lines to /etc/hosts. Type Enter when complete.
-* Add to /etc/hosts
-
127.0.1.2 public.localhost public
127.0.1.3 private.localhost private
-* Finish configuring Apache
+* Start services
+su - opensrf
+osrf_ctl.sh -l -a start_router;
+osrf_ctl.sh -l -a start_perl;
+sleep 10;
+osrf_ctl.sh -l -a start_c;
+sleep 3;
+cd /openils/bin/;
+./autogen.sh ../conf/opensrf_core.xml;
+
+* Test the system
+
+# as opensrf user
+echo "request open-ils.cstore open-ils.cstore.direct.actor.user.retrieve 1" | srfsh
+
+* Now finish configuring Apache
+
EOF
+
More information about the open-ils-commits
mailing list