download 691 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. VERSION=${1:-2.4.5-p1}
  3. EDITION=${2:-community}
  4. bin/stop
  5. bin/start --no-dev
  6. [ $? != 0 ] && echo "Failed to start Docker services" && exit
  7. bin/setup-composer-auth
  8. bin/fixowns
  9. if [ "$EDITION" == "mageos" ]; then
  10. bin/clinotty composer create-project --stability alpha --repository-url=https://upstream-nightly.mage-os.org magento/project-community-edition .
  11. else
  12. bin/clinotty composer create-project --repository=https://repo.magento.com/ magento/project-"${EDITION}"-edition="${VERSION}" .
  13. fi
  14. bin/clinotty [ ! -f "./var/composer_home/auth.json" ] && bin/clinotty mkdir -p ./var/composer_home && bin/clinotty cp /var/www/.composer/auth.json ./var/composer_home/auth.json