Changeset 32432 for gs3-extensions/solr/trunk/src/gs3-setup.sh
- Timestamp:
- 2018-09-07T19:39:40+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/solr/trunk/src/gs3-setup.sh
r31138 r32432 15 15 # The following sets the field separator IFS to the = sign, then reads the file line by 16 16 # line, setting propname and propval (which are fields separated by '=') for each line read 17 SOLR_PORT=8 98318 SOLR_HOST= localhost17 SOLR_PORT=8383 18 SOLR_HOST=127.0.0.1 19 19 file=$GSDL3SRCHOME/build.properties 20 # The Solr servlet should only be locally accessible, thus restricting the protocol to http as 21 # https certificates can't be issued for localhost/127.0.0.1 (https://letsencrypt.org/docs/certificates-for-localhost/) 22 # This means we use the properties localhost.server.http (defaults to 127.0.0.1) and localhost.port.http 23 # to construct the solr servlet url, rather than properties tomcat.server and tomcat.port.https 20 24 while IFS== read propname propval; do 21 if [ "x$propname" = "x tomcat.server" ] ; then25 if [ "x$propname" = "xlocalhost.server.http" ] ; then 22 26 SOLR_HOST=$propval 23 27 fi 24 if [ "x$propname" = "x tomcat.port" ] ; then28 if [ "x$propname" = "xlocalhost.port.http" ] ; then 25 29 SOLR_PORT=$propval 26 30 fi
Note:
See TracChangeset
for help on using the changeset viewer.