mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 22:53:40 -05:00
d0cd02d0ac
Add proper environment in CE/Server Pro preshutdown scripts GitOrigin-RevId: 84ec76de67e91a4acc1f326a701ebb13a3f1322f
14 lines
318 B
Bash
Executable file
14 lines
318 B
Bash
Executable file
#!/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="$?"
|
|
if [ $EXIT_CODE -ne 0 ]
|
|
then
|
|
echo "document-updater/scripts/flush_all.js failed with exit code $EXIT_CODE"
|
|
fi
|
|
|
|
exit 0
|