root/trunk/build/quickstart/linux/install

Revision 1951 (checked in by douglm, 5 years ago)

Changes to the build process an adding some install scripts

Line 
1 #! /bin/sh
2
3 #
4 # This file is included by the quickstart script file "bwinstall" so that it can live
5 # within the svn repository.
6 #
7
8 ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0
9 ANT_HOME=`cd "$ANT_HOME" && pwd`
10 saveddir=`pwd`
11
12 export QUICKSTART_HOME=$saveddir
13
14 export BEDEWORK_HOME=$QUICKSTART_HOME/bedework
15
16 libcache=$BEDEWORK_HOME/libcache
17
18 export DS_HOME=$QUICKSTART_HOME/apacheds-1.5.3-fixed
19
20 shutdownServer() {
21   echo "Stopping directory server"
22   $JAVA_HOME/bin/java -jar $DS_HOME/bin/apacheds-tools.jar graceful --install-path $DS_HOME --configuration
23 }
24
25 if [ -d "$HOME/bwbuild" ] ; then
26   echo "========================================================"
27   echo "You already have a bwbuild in user home $HOME"
28   echo "Enter 'yes' to continue with the directory unchanged"
29   echo "(you may need to update it afterwards)"
30   echo "Enter anything else to terminate the install allowing "
31   echo "you to rename or destroy it."
32   echo "========================================================"
33
34   echo "Continue? yes/no"
35   read reply
36
37   if [ "$reply" != "yes" ] ; then
38     exit 1
39   fi
40 else
41   cp $BEDEWORK_HOME/config/bwbuild $USER_HOME
42 fi
43
44 # Ensure we shut down the directory server at program termination
45 # or after we received a signal:
46 trap 'shutdownServer' 0
47 trap "exit 2" 1 2 3 15
48
49   echo "========================================================"
50   echo "We need to create a new ldap directory for the quickstart"
51   #  <!-- This after 3.5
52   #  <echo message="or copy a previous quickstart ldap directory into the new quickstart" />
53   #  -->
54   echo "========================================================"
55
56   echo "Starting directory server"
57
58   export DS_OPTS="-Dapacheds.log.dir=$DS_HOME/logs"
59   cd $DS_HOME && ./apacheds.sh &
60
61   sleep 10
62
63   DIRTOOL_HOME=$BEDEWORK_HOME/projects/bwtools
64   DIRTOOL_CP=$libcache/commons-codec-1.3.jar:$libcache/log4j-1.2.8.jar
65   DIRTOOL_CP=$DIRTOOL_CP:$DIRTOOL_HOME/dist/bw-tools-3.5.jar
66
67   $JAVA_HOME/bin/java -classpath $DIRTOOL_CP org.bedework.tools.directory.DirTool -initSystem
68
Note: See TracBrowser for help on using the browser.