Ver código fonte

support for magento 2 enterprise download

Piotr Kwiecinski 4 anos atrás
pai
commit
7d6c6e730c
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      compose/bin/download

+ 7 - 0
compose/bin/download

@@ -1,6 +1,13 @@
 #!/bin/bash
 [ -z "$1" ] && echo "Please specify the version to download (ex. 2.0.0)" && exit
 
+edition=${2:-community}
+
+if [[ "$edition" == "enterprise" ]]; then
+    composer create-project --repository=https://repo.magento.com/ --ignore-platform-reqs magento/project-enterprise-edition=$1 src
+    exit 0
+fi
+
 if [ ! -f ~/.docker-magento/magento2-$1.tar.gz ]; then
     mkdir -p ~/.docker-magento
     (cd ~/.docker-magento && curl -OL http://pubfiles.nexcess.net/magento/ce-packages/magento2-$1.tar.gz)