mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
TIL archive.apache.org is a thing
This commit is contained in:
parent
f3b9ef9dde
commit
49283f4c75
|
|
@ -8,13 +8,10 @@ cd `dirname $0`/..
|
||||||
|
|
||||||
mkdir -p .downloads
|
mkdir -p .downloads
|
||||||
|
|
||||||
# The mirror to download kafka from is picked from the list of mirrors at
|
KAFKA_URL=http://archive.apache.org/dist/kafka/2.1.0/kafka_2.11-2.1.0.tgz
|
||||||
# https://www.apache.org/dyn/closer.cgi?path=/kafka/2.1.0/kafka_2.11-2.1.0.tgz
|
|
||||||
# TODO: Check the signature since we are downloading over HTTP.
|
|
||||||
MIRROR=http://apache.mirror.anlx.net/kafka/2.1.0/kafka_2.11-2.1.0.tgz
|
|
||||||
|
|
||||||
# Only download the kafka if it isn't already downloaded.
|
# Only download the kafka if it isn't already downloaded.
|
||||||
test -f .downloads/kafka.tgz || wget $MIRROR -O .downloads/kafka.tgz
|
test -f .downloads/kafka.tgz || wget KAFKA_URL -O .downloads/kafka.tgz
|
||||||
# Unpack the kafka over the top of any existing installation
|
# Unpack the kafka over the top of any existing installation
|
||||||
mkdir -p kafka && tar xzf .downloads/kafka.tgz -C kafka --strip-components 1
|
mkdir -p kafka && tar xzf .downloads/kafka.tgz -C kafka --strip-components 1
|
||||||
# Start the zookeeper running in the background.
|
# Start the zookeeper running in the background.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue