Created
June 25, 2014 15:44
-
-
Save peaeater/dd4d8231f03d963665a2 to your computer and use it in GitHub Desktop.
Sample master update script that coordinates extractomatic, remote sync, and Solr ingest.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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