onelinesetup 426 B

12345678910111213
  1. #!/usr/bin/env bash
  2. set -o errexit
  3. DOMAIN=${1:-magento.test}
  4. EDITION=${2}
  5. VERSION=${3}
  6. curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash
  7. # &&'s are used below otherwise onelinesetup script fails/errors after bin/download
  8. # ${:+""} format only includes parameters if they were explicitly set
  9. bin/download ${EDITION:+"$EDITION"} ${VERSION:+"$VERSION"} \
  10. && bin/setup "${DOMAIN}"