Переглянути джерело

add edition to onelinesetup

Piotr Kwiecinski 4 роки тому
батько
коміт
ad573f6f3c
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      lib/onelinesetup

+ 2 - 1
lib/onelinesetup

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