diff --git a/install.sh b/install.sh index d73a7cf806..8d22a19218 100755 --- a/install.sh +++ b/install.sh @@ -4,6 +4,13 @@ set -e bash preinstall.sh +# If docker-compose is installed and if docker-compose.yml is found then, stop the stack. +if [[ $(which docker-compose) ]]; then + if [ -f ./docker-compose.yml ]; then + sudo -E docker-compose -f docker-compose.yml stop || true + fi +fi + npm run start echo "We will need to wait ~5-10 minutes for things to settle down, migrations to finish, and TLS certs to be issued" diff --git a/preinstall.sh b/preinstall.sh index 113be1ac41..b74637199e 100644 --- a/preinstall.sh +++ b/preinstall.sh @@ -32,13 +32,6 @@ echo "Ok! We'll take it from here 🚀" echo "Making sure any stack that might exist is stopped" -# If docker-compose is installed and if docker-compose.yml is found then, stop the stack. -if [[ $(which docker-compose) ]]; then - if [ -f ./docker-compose.yml ]; then - sudo -E docker-compose -f docker-compose.yml stop || true - fi -fi - # If Mac if [[ "$OSTYPE" == "darwin"* ]]; then