Merge pull request #17885 from overleaf/em-sp-missing-env

Add proper environment in CE/Server Pro preshutdown scripts

GitOrigin-RevId: 84ec76de67e91a4acc1f326a701ebb13a3f1322f
This commit is contained in:
Eric Mc Sween 2024-04-15 08:54:08 -04:00 committed by Copybot
parent 6100954635
commit d0cd02d0ac
3 changed files with 9 additions and 0 deletions

View file

@ -1,5 +1,8 @@
#!/bin/sh
. /etc/container_environment.sh
. /etc/overleaf/env.sh
SITE_MAINTENANCE_FILE_BAK="$SITE_MAINTENANCE_FILE.bak.shutdown"
mv "${SITE_MAINTENANCE_FILE}" "${SITE_MAINTENANCE_FILE_BAK}"

View file

@ -1,5 +1,8 @@
#!/bin/sh
. /etc/container_environment.sh
. /etc/overleaf/env.sh
cd /overleaf/services/document-updater && node scripts/flush_all.js >> /var/log/overleaf/document-updater.log 2>&1
EXIT_CODE="$?"

View file

@ -1,5 +1,8 @@
#!/bin/sh
. /etc/container_environment.sh
. /etc/overleaf/env.sh
cd /overleaf/services/project-history && node scripts/flush_all.js >> /var/log/overleaf/project-history.log 2>&1
EXIT_CODE="$?"