Skip to content

Commit 516b193

Browse files
committed
Update setup script
1 parent 8eae74c commit 516b193

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

setup.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
set -e
44

5-
mkdir -p magento
6-
75
# Detect OS
86
case `uname -s` in
97
Darwin) is_macos=yes ;;
@@ -22,11 +20,11 @@ searchAndReplace() {
2220
}
2321

2422
searchAndReplace "/path/to/magento" "${PWD}/magento" docker-compose.yml
25-
mv install-magento.sh magento/.
26-
mv composer.json.magento magento/composer.json
2723

2824
docker-compose down
2925
docker-compose up -d --build
3026

31-
# Install Magento and setup PHPUnit.
32-
docker exec -it web-magento1-phpunit bash -c "cd app && bash install-magento.sh"
27+
# Install Magento and setup PHPUnit, if not already installed.
28+
if [ ! -f magento/app/etc/local.xml ]; then
29+
docker exec -it web-magento1-phpunit bash -c "cd app && bash install-magento.sh"
30+
fi

0 commit comments

Comments
 (0)