Changeset 2008
- Timestamp:
- 01/05/09 15:46:38
- Files:
-
- trunk/build/quickstart/install.xml (modified) (6 diffs)
- trunk/build/quickstart/linux/bw (modified) (2 diffs)
- trunk/build/quickstart/linux/install (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/quickstart/install.xml
r1951 r2008 26 26 b. Create a caladmin user with supplied password 27 27 c. Create a test user 28 If a directory is to be copied from a previous quickstart, copy the28 If an ldap directory is to be copied from a previous quickstart, copy the 29 29 directory server files. 30 30 ================================================================= --> 31 31 32 <target name="install " depends="run.init"33 description="Install the quickstart">32 <target name="install-configs" depends="run.init" 33 description="Install the build configuration files"> 34 34 <echo message="Create bwbuild in user home"/> 35 35 … … 64 64 </if> 65 65 66 <!-- ================================================================= 67 Some final reminders 68 ================================================================= 69 70 This should go into some sort of summary file we echo at the end. 71 <if> 72 <isset property="org.bedework.install.bwbuild.reply" /> 73 <then> 74 <echo message="========================================================" /> 75 <echo message="Note:" /> 76 <echo message="${user.home}/bwbuild was left unchanged. You may need" /> 77 <echo message="to update it for this release." /> 78 <echo message="========================================================" /> 79 </then> 80 </if>--> 81 </target> 82 83 <target name="install-ldap" depends="run.init" 84 description="Install the ldap directory server"> 66 85 <echo message="========================================================" /> 67 <echo message="We need to create a new directory for the quickstart" />86 <echo message="We need to create a new ldap directory for the quickstart" /> 68 87 <!-- This after 3.5 69 88 <echo message="or copy a previous quickstart directory into the new quickstart" /> … … 71 90 <echo message="========================================================" /> 72 91 73 <echo message="Creating a new directory for the quickstart" />92 <echo message="Creating a new ldap directory for the quickstart" /> 74 93 <parallel> 75 94 <daemons> … … 77 96 </daemons> 78 97 <sequential> 98 <echo message="Pausing to let the ldap server start" /> 79 99 <sleep seconds="10" /> 80 100 <antcallback target="initDirForQuickstart" inheritrefs="true" … … 96 116 <else> 97 117 <echo message="Initialisation failed" /> 98 99 118 </else> 100 119 </if> … … 103 122 </sequential> 104 123 </parallel> 105 106 <!-- =================================================================107 Some final reminders108 ================================================================= -->109 110 <if>111 <isset property="org.bedework.install.bwbuild.reply" />112 <then>113 <echo message="========================================================" />114 <echo message="Note:" />115 <echo message="${user.home}/bwbuild was left unchanged. You may need" />116 <echo message="to update it for this release." />117 <echo message="========================================================" />118 </then>119 </if>120 124 </target> 121 125 trunk/build/quickstart/linux/bw
r1948 r2008 5 5 # within the svn repository. 6 6 # 7 8 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then 9 errorUsage "JAVA_HOME is not defined correctly for bedework." 10 fi 7 11 8 12 ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0 … … 119 123 fi 120 124 121 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then122 errorUsage "JAVA_HOME is not defined correctly for bedework."123 fi124 125 125 # Make available for ant 126 126 export BWCONFIG="-Dorg.bedework.user.build.properties=$BEDEWORK_CONFIG/build.properties" trunk/build/quickstart/linux/install
r1968 r2008 6 6 # 7 7 8 errorMsg() { 9 echo "*******************************************************" 10 echo "Error: $1" 11 echo "*******************************************************" 12 exit 1 13 } 14 15 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then 16 errorMsg "JAVA_HOME is not defined correctly for bedework." 17 fi 18 19 # Ant 8 20 ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0 9 21 ANT_HOME=`cd "$ANT_HOME" && pwd` … … 12 24 export QUICKSTART_HOME=$saveddir 13 25 26 # Directory server 27 export DS_HOME=$QUICKSTART_HOME/apacheds-1.5.3-fixed 28 29 # ------------- Should not need to change anything below this ---------- 30 31 ANT=$ANT_HOME/bin/ant 32 14 33 export BEDEWORK_HOME=$QUICKSTART_HOME/bedework 15 34 16 35 libcache=$BEDEWORK_HOME/libcache 17 36 18 export DS_HOME=$QUICKSTART_HOME/apacheds-1.5.3-fixed 37 quickStartBuildFile=$QUICKSTART_HOME/build.xml 38 39 qsant="$ANT -buildfile $quickStartBuildFile" 19 40 20 41 shutdownServer() { 21 42 echo "Stopping directory server" 22 43 $JAVA_HOME/bin/java -jar $DS_HOME/bin/apacheds-tools.jar graceful --install-path $DS_HOME --configuration 44 } 45 46 readVal() { 47 val= 48 until [ "$val" != "" ] ; do 49 echo "Enter $1" 50 read val 51 done 23 52 } 24 53 … … 42 71 echo "========================================================" 43 72 44 if [ -d "$HOME/bwbuild" ] ; then45 echo "========================================================"46 echo "You already have a bwbuild in user home $HOME"47 echo "Enter 'yes' to continue with the directory unchanged"48 echo "(you may need to update it afterwards)"49 echo "Enter anything else to terminate the install allowing "50 echo "you to rename or destroy it."51 echo "========================================================"52 53 echo "Continue? yes/no"54 read reply55 56 if [ "$reply" != "yes" ] ; then57 exit 158 fi59 else60 cp $BEDEWORK_HOME/config/bwbuild $USER_HOME61 fi62 63 73 # Ensure we shut down the directory server at program termination 64 74 # or after we received a signal: … … 66 76 trap "exit 2" 1 2 3 15 67 77 78 #XXif [ -d "$HOME/bwbuild" ] ; then 79 #XX echo "========================================================" 80 #XX echo "You already have a bwbuild in user home $HOME" 81 #XX echo "Enter 'yes' to continue with the directory unchanged" 82 #XX echo "(you may need to update it afterwards)" 83 #XX echo "Enter anything else to terminate the install allowing " 84 #XX echo "you to rename or destroy it." 85 #XX echo "========================================================" 86 #XX 87 #XX echo "Continue? yes/no" 88 #XX read reply 89 #XX 90 #XX if [ "$reply" != "yes" ] ; then 91 #XX exit 1 92 #XX fi 93 #XXelse 94 #XX cp $BEDEWORK_HOME/config/bwbuild $USER_HOME 95 #XXfi 96 97 $qsant install-configs 98 68 99 echo "========================================================" 69 100 echo "We need to create a new ldap directory for the quickstart" 70 # <!-- This after 3.571 # <echo message="or copy a previous quickstart ldap directory into the new quickstart" />72 # -->101 # <!-- This after 3.5 102 # <echo message="or copy a previous quickstart ldap directory into the new quickstart" /> 103 # --> 73 104 echo "========================================================" 74 105 … … 80 111 echo "Pausing while the server starts" 81 112 82 #sleep 10113 sleep 10 83 114 84 echo "Getting directory information and creating entries" 115 $qsant initDirForQuickstart 116 117 echo "Now we invoke the adduser script to add a superuser to the system" 118 echo "We need to know the account, first name last name and a password 119 120 readVal "account" 121 rootAccount=$val 122 adduser_defs="-Dorg.bedework.directory.account=$val" 123 124 readVal "firstname" 125 adduser_defs="$adduser_defs -Dorg.bedework.directory.firstname=$val" 126 127 readVal "lastname" 128 adduser_defs="$adduser_defs -Dorg.bedework.directory.lastname=$val" 129 130 readVal "password" 131 adduser_defs="$adduser_defs -Dorg.bedework.directory.password=$val" 132 133 $qsant addUser 134 135 exit 2 136 137 $qsant addUserPrompt 85 138 86 139 DIRTOOL_HOME=$BEDEWORK_HOME/projects/bwtools … … 90 143 91 144 # $dirtool -initSystem 92 145 superuser 93 146 superuser= 94 147 until [ "$superuser" != "" ] ; do … … 107 160 done 108 161 162 163 109 164 echo "create data"
