fix install and preinstall

This commit is contained in:
Simon Larsen
2022-11-10 11:30:29 +00:00
parent 4e6679f032
commit 08b045a90d
2 changed files with 7 additions and 7 deletions

View File

@@ -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"