Skip to content

Instantly share code, notes, and snippets.

@peaeater
Created June 25, 2014 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peaeater/dd4d8231f03d963665a2 to your computer and use it in GitHub Desktop.
Save peaeater/dd4d8231f03d963665a2 to your computer and use it in GitHub Desktop.
Sample master update script that coordinates extractomatic, remote sync, and Solr ingest.
<#
Manages component scripts to perform textbase-to-solr update.
Script halts if any component reports failure. (Components must return exit code 1 on failure, 0 on success.)
Peter Tyrrell
#>
$logsrc = "Andi Solr Update"
& '.\mytextbase.ps1' $logsrc
if ($LastExitCode -ne 0) {
echo "mytextbase.ps1 failed, exiting"
exit 1
}
& '.\myothertextbase.ps1' $logsrc
if ($LastExitCode -ne 0) {
echo "myothertextbase.ps1 failed, exiting"
exit 1
}
& '.\push-dir-to-remote.ps1' $logsrc
if ($LastExitCode -ne 0) {
echo "push-dir-to-remote.ps1 failed, exiting"
exit 1
}
& '.\solr-dih-ingest-with-polling.ps1' $logsrc
if ($LastExitCode -ne 0) {
echo "solr-dih-ingest-with-polling.ps1 failed, exiting"
exit 1
}
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment