onelinesetup 487 B

1234567891011121314
  1. #!/bin/bash
  2. set -o errexit
  3. DOMAIN=${1:-magento.test}
  4. VERSION=${2:-2.4.3}
  5. EDITION=${3:-community}
  6. curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
  7. # &&'s are used below otherwise onelinesetup script fails/errors on bin/download
  8. bin/download "${VERSION}" "${EDITION}" \
  9. && echo "Your system password has been requested to add an entry to /etc/hosts..." \
  10. && echo "127.0.0.1 ::1 $DOMAIN" | sudo tee -a /etc/hosts \
  11. && bin/setup $DOMAIN