Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions aztec-up/bin/aztec-install
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,19 @@ if [ -z "${SKIP_PULL:-}" ]; then
fi

# Download the Docker Compose file. Used by aztec.
curl -fsSL http://$INSTALL_HOST/docker-compose.sandbox.yml -o $AZTEC_PATH/docker-compose.sandbox.yml
curl -fsSL http://$INSTALL_HOST/docker-compose.test.yml -o $AZTEC_PATH/docker-compose.test.yml
function download_docker_compose {
local install_url
if [ "$VERSION" != "latest" ]; then
install_url="http://$INSTALL_HOST/$VERSION/docker-compose.${1}.yml"
else
install_url="http://$INSTALL_HOST/master/docker-compose.${1}.yml"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this should just be install_url="http://$INSTALL_HOST/docker-compose.${1}.yml

fi
curl -fsSL "$install_url" -o $AZTEC_PATH/docker-compose.${1}.yml
echo "Installed docker-compose.${1}.yml"
}

download_docker_compose "sandbox"
download_docker_compose "test"

function install_bin {
local install_url
Expand Down