onelinesetup 326 B

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