diff --git a/aztec-up/bin/aztec-install b/aztec-up/bin/aztec-install index bec2edb9a43..470664f7040 100755 --- a/aztec-up/bin/aztec-install +++ b/aztec-up/bin/aztec-install @@ -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/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