2
0

onelinesetup 378 B

12345678910111213
  1. #!/bin/bash
  2. set -o errexit
  3. DOMAIN=${1:-magento2.test}
  4. VERSION=${2:-2.4.0}
  5. EDITION=${3:-community}
  6. curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
  7. bin/download $VERSION $EDITION
  8. echo "Your system password has been requested to add an entry to /etc/hosts..."
  9. echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts
  10. bin/setup $DOMAIN