onelinesetup 363 B

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