File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,15 @@ if [ "$SOLR_INSTALL_DIR" == "" ]; then
102102 # If we were not provided an existing install directory we'll temporarily download a version of solr to generate config.
103103 GENERATE_SOLR_TMPDIR=` mktemp -d`
104104 echo " Downloading solr bundle:"
105- curl https://archive.apache.org/dist/lucene/solr/${SOLR_VERSION} /solr-${SOLR_VERSION} .tgz > $GENERATE_SOLR_TMPDIR /solr-${SOLR_VERSION} .tgz
105+
106+ # choose archive path based on SOLR version (> 9.0.0 uses solr/solr)
107+ if [ " $( printf ' %s\n' " $SOLR_VERSION " " 9.0.0" | sort -V | tail -n1) " != " 9.0.0" ]; then
108+ DOWNLOAD_BASE=" https://archive.apache.org/dist/solr/solr"
109+ else
110+ DOWNLOAD_BASE=" https://archive.apache.org/dist/lucene/solr"
111+ fi
112+
113+ curl " ${DOWNLOAD_BASE} /${SOLR_VERSION} /solr-${SOLR_VERSION} .tgz" > " ${GENERATE_SOLR_TMPDIR} /solr-${SOLR_VERSION} .tgz"
106114
107115 echo " Untaring"
108116 cd $GENERATE_SOLR_TMPDIR
You can’t perform that action at this time.
0 commit comments