#!/bin/bash VERSION=${1:-2.4.3-p1} EDITION=${2:-community} bin/stop docker-compose -f docker-compose.yml up -d [ $? != 0 ] && echo "Failed to start Docker services" && exit bin/setup-composer-auth bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" . # Ensure these are created so Docker doesn't create them as root mkdir -p ~/.composer ~/.ssh touch ~/.ssh/id_rsa ~/.ssh/known_hosts