We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8eae74c commit 516b193Copy full SHA for 516b193
setup.sh
@@ -2,8 +2,6 @@
2
3
set -e
4
5
-mkdir -p magento
6
-
7
# Detect OS
8
case `uname -s` in
9
Darwin) is_macos=yes ;;
@@ -22,11 +20,11 @@ searchAndReplace() {
22
20
}
23
21
24
searchAndReplace "/path/to/magento" "${PWD}/magento" docker-compose.yml
25
-mv install-magento.sh magento/.
26
-mv composer.json.magento magento/composer.json
27
28
docker-compose down
29
docker-compose up -d --build
30
31
-# Install Magento and setup PHPUnit.
32
-docker exec -it web-magento1-phpunit bash -c "cd app && bash install-magento.sh"
+# Install Magento and setup PHPUnit, if not already installed.
+if [ ! -f magento/app/etc/local.xml ]; then
+ docker exec -it web-magento1-phpunit bash -c "cd app && bash install-magento.sh"
+fi
0 commit comments