1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Fix how we run web migrations after restore

This commit is contained in:
June Kelly 2021-08-27 10:49:51 +01:00
parent 51f3e31838
commit 0173872cc2

View file

@ -84,10 +84,9 @@ function restore-mongo () {
# TODO: select either server-ce or server-pro migrations
## Run web migrations
# shellcheck disable=SC1004
"$TOOLKIT_ROOT/bin/docker-compose" exec sharelatex bash -lc '\
cd /var/www/sharelatex/web && \
[[ -d migrations ]] && npm run migrations -- migrate -t server-pro'
if [[ -d migrations ]]; then npm run migrations -- migrate -t server-pro; fi'
## Stop services again
"$TOOLKIT_ROOT/bin/docker-compose" stop sharelatex