33vagrant_dir=$( cd " $( dirname " $0 " ) /../.." ; pwd)
44magento_ce_dir=" ${vagrant_dir} /magento2ce"
55magento_ee_dir=" ${magento_ce_dir} /magento2ee"
6- ce_repository_default=" ${vagrant_dir} /local.config/ce_repository_url.txt.dist"
7- ce_repository_custom=" ${vagrant_dir} /local.config/ce_repository_url.txt"
8- # By default EE repository is not specified and EE project cannot be checked out
9- ee_repository_custom=" ${vagrant_dir} /local.config/ee_repository_url.txt"
106
117# Enable trace printing and exit on the first error
128set -ex
139
1410bash " ${vagrant_dir} /scripts/host/check_requirements.sh"
1511
1612# Check out CE repository
17- rm -f " ${magento_ee_dir} /.gitkeep"
18- rm -rf ${magento_ee_dir}
19- if [ -f ${ce_repository_custom} ]; then
20- ce_repository_url=$( cat ${ce_repository_custom} )
21- else
22- ce_repository_url=$( cat ${ce_repository_default} )
23- fi
13+ ce_repository_url=$( sh " ${vagrant_dir} /scripts/host/get_variable_value.sh" " ce_repository_url" )
2414git clone ${ce_repository_url} ${magento_ce_dir}
2515
2616# Check out EE repository
17+ # By default EE repository is not specified and EE project is not checked out
18+ ee_repository_custom=" ${vagrant_dir} /local.config/ee_repository_url.txt"
2719if [ -f ${ee_repository_custom} ]; then
2820 ee_repository_url=$( cat ${ee_repository_custom} )
2921 git clone ${ee_repository_url} ${magento_ee_dir}
3022else
3123 set +x
3224 echo " Note: URL to Magento EE repository may be specified in ${ee_repository_custom} , then it will be checked out automatically."
3325 set -x
34- mkdir ${magento_ee_dir}
3526fi
3627
3728# Update Magento dependencies via Composer
@@ -41,3 +32,5 @@ bash "${vagrant_dir}/scripts/host/composer.sh" install
4132# Create vagrant project
4233cd ${vagrant_dir}
4334vagrant up
35+
36+ bash " ${vagrant_dir} /scripts/host/configure_php_storm.sh"
0 commit comments