Last active
December 16, 2016 18:06
-
-
Save pspanja/202462dab3a4934948174be7a9bb4376 to your computer and use it in GitHub Desktop.
Start Solr for Solr Search Engine for eZ Platform
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
#!/usr/bin/env bash | |
if [[ $# -eq 0 ]] ; then | |
echo 'ERROR: no version provided' | |
exit 1 | |
fi | |
if [ ${2} ] ; then | |
./__solr/${1}/bin/solr stop -all | |
exit 1 | |
fi | |
SOLR_DEBUG=true SOLR_VERSION=${1} ./bin/.travis/init_solr.sh | |
if [[ ${1} == 6* ]] ; then | |
tail -f "__solr/${1}/server/logs/solr.log" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment