Changeset 29711 for gs3-extensions/solr/trunk/src/gs3-setup.sh
- Timestamp:
- 2015-02-03T21:57:53+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/gs3-setup.sh
r24485 r29711 11 11 #-- 12 12 13 # If using tomcat, read the tomcat host and port from the toplevel GS3 build.properties 14 # http://en.kioskea.net/faq/1757-how-to-read-a-file-line-by-line 15 # The following sets the field separator IFS to the = sign, then reads the file line by 16 # line, setting propname and propval (which are fields separated by '=') for each line read 17 SOLR_PORT=8983 18 SOLR_HOST=localhost 19 file=$GSDL3SRCHOME/build.properties 20 while IFS== read propname propval; do 21 if [ "x$propname" = "xtomcat.server" ] ; then 22 SOLR_HOST=$propval 23 fi 24 if [ "x$propname" = "xtomcat.port" ] ; then 25 SOLR_PORT=$propval 26 fi 27 done < $file 28 29 echo "Tomcat port: $SOLR_PORT" 30 echo "Tomcat host: $SOLR_HOST" 31 32 # If using jetty: 13 33 # The port Jetty runs on: 14 34 SOLR_JETTY_PORT=8983 … … 61 81 export SOLR_JETTY_PORT 62 82 export JETTY_STOP_PORT 83 export SOLR_PORT 84 export SOLR_HOST 63 85 first_time=1 64 86
Note:
See TracChangeset
for help on using the changeset viewer.