Changeset 30524 for main/trunk/greenstone2/bin/script/activate.pl
- Timestamp:
- 2016-05-10T16:39:20+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/bin/script/activate.pl
r30523 r30524 113 113 114 114 print STDERR "\n"; 115 print STDERR "Usage: $progname [-collectdir c -builddir b -indexdir i -site s -skipactivation -removeold -keepold - verbosity v\n";115 print STDERR "Usage: $progname [-collectdir c -builddir b -indexdir i -site s -skipactivation -removeold -keepold -incremental -verbosity v\n"; 116 116 print STDERR "\t-library_url URL -library_name n] <[colgroup/]collection>\n"; 117 117 print STDERR "\n"; … … 247 247 248 248 # 1. Get library URL 249 250 # For web servers that are external to a Greenstone installation, 251 # the user can pass in their web server's library URL. 252 # For web servers included with GS (like tomcat for GS3 and server.exe 253 # and apache for GS2), we work out the library URL: 254 if(!$library_url) { 255 $library_url = $gsserver->get_library_URL(); # returns undef if no server is running 256 } 257 258 # CollectionManager's installCollection phase in GLI 259 # 2. Ping the library URL, and if it's a persistent server and running, release the collection 260 if($library_url && !$skipactivation) { # undef if no valid server URL 261 $gsserver->do_deactivate(); 262 } 249 # CollectionManager's installCollection phase in GLI: 250 # 2. Ping the library URL, and if it's a persistent server and running, release the collection 251 $gsserver->do_deactivate() unless $skipactivation; 263 252 264 253 # 2b. If we're working with a solr collection, then start up the solrserver now. … … 386 375 387 376 388 # 4. Ping the library URL, and if it's a persistent server and running, activate the collection again 377 # 4. Ping the library URL, and if it's a persistent server and running, activate the collection again 389 378 390 379 # Check for success: if building does not exist OR is empty OR if building is index (in which case there was no move) 391 380 if($build_dir eq $index_dir || !&FileUtils::directoryExists($build_dir) || &FileUtils::isDirectoryEmpty($build_dir)) { 392 381 393 if($library_url && !$skipactivation) { # undef if no valid server URL 394 $gsserver->do_activate(); 395 } 382 $gsserver->do_activate() unless $skipactivation; 383 396 384 } else { # installcollection failed 397 385 #CollectionManager.Preview_Ready_Failed
Note:
See TracChangeset
for help on using the changeset viewer.