onelinesetup 258 B

12345678
  1. #!/bin/bash
  2. DOMAIN=${1:-magento2.test}
  3. VERSION=${2:-2.3.0}
  4. curl -s https://raw.githubusercontent.com/markoshust/docker-magento/master/lib/template|bash -s - magento-2
  5. bin/download $VERSION
  6. echo "127.0.0.1 $DOMAIN" | sudo tee -a /etc/hosts
  7. bin/setup $DOMAIN