Skip to content

Commit

Permalink
#1125 Use faster download URL for SOLR
Browse files Browse the repository at this point in the history
  • Loading branch information
j3nsch committed Oct 26, 2023
1 parent ee98e04 commit 3e22b0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mkdir -p "downloads"
cd downloads
SOLR_TAR="solr-$SOLR_VERSION.tgz"
if test ! -f "$SOLR_TAR"; then
SOLR_URL="https://archive.apache.org/dist/solr/solr/$SOLR_VERSION/$SOLR_TAR"
SOLR_URL="https://www.apache.org/dyn/closer.lua/solr/solr/$SOLR_VERSION/$SOLR_TAR?action=download"
echo "Getting: $SOLR_URL"
wget -q --show-progress --progress=bar:force $SOLR_URL
fi
Expand Down
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<property name="adminPassword" value="AdminAdmin" />
<property name="bindir" value="${basedir}/vendor/bin" />
<property name="verbose" value="" />
<property name="solrVersion" value="5.5.5" />
<property name="solrVersion" value="9.4.0" />
<property name="downloadDir" value="${basedir}/downloads" />

<!-- Properties for configuration files (config.ini, console.ini, tests/config.ini) used for testing. -->
Expand Down Expand Up @@ -341,7 +341,7 @@

<target name="download-solr">
<mkdir dir="${downloadDir}" />
<get src="https://archive.apache.org/dist/lucene/solr/${solrVersion}/solr-${solrVersion}.tgz"
<get src="https://www.apache.org/dyn/closer.lua/solr/solr/${solrVersion}/solr-${solrVersion}.tgz?action=download"
dest="${downloadDir}/solr-${solrVersion}.tgz"
skipexisting="true" />
<exec executable="tar" dir="${downloadDir}">
Expand Down

0 comments on commit 3e22b0c

Please sign in to comment.