Changeset 33392 for main/trunk
- Timestamp:
- 2019-08-08T15:15:11+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/activate.pl
r32178 r33392 277 277 278 278 # If the Solr/Jetty server is not already running, the following starts 279 # it up, and only returns when the server is "read ingand listening"279 # it up, and only returns when the server is "ready and listening" 280 280 $solr_server = new solrserver($build_dir); 281 281 $solr_server->start(); 282 282 283 # We'll be moving building to index. For solr collection, there's further283 # We'll be moving building to index. For a solr collection, there's further 284 284 # special processing to make a corresponding change to the solr.xml 285 285 # by removing the temporary building cores and (re)creating the index cores … … 307 307 # if solr, remove any cores that are using the index_dir before deleting this dir 308 308 foreach my $corename (@corenames) { 309 $solr_server->admin_unload_core($corename) ;309 $solr_server->admin_unload_core($corename) if ($solr_server->admin_ping_core($corename)); 310 310 } 311 311 } … … 327 327 # if solr, remove any cores that are using the building_dir before moving this dir onto index 328 328 foreach my $corename (@corenames) { 329 $solr_server->admin_unload_core("building-$corename") ;329 $solr_server->admin_unload_core("building-$corename") if ($solr_server->admin_ping_core("building-$corename")); 330 330 } 331 331 } … … 376 376 $solr_server->admin_unload_core($corename); 377 377 } 378 378 $solr_server->admin_create_core($corename, $index_dir); 379 379 380 380 }
Note:
See TracChangeset
for help on using the changeset viewer.