Skip to content

Commit

Permalink
fix: if installing latest, download docker compose from master tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Nov 26, 2024
1 parent 743b07b commit 87d907a
Showing 1 changed file with 13 additions and 2 deletions.
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"
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

0 comments on commit 87d907a

Please sign in to comment.