2
0

onelinesetup 268 B

123456789
  1. #!/bin/bash
  2. DOMAIN=${1:-magento2.test}
  3. VERSION=${2:-2.2.6}
  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/start
  8. bin/setup $DOMAIN