mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 14:02:00 +00:00
05f4deeb34
[server-ce] fix shutdown sequence: flush document-updater before history GitOrigin-RevId: b46d25744cb18600e93b90e0ace5d4e1e563ebd2
11 lines
255 B
Bash
Executable file
11 lines
255 B
Bash
Executable file
#!/bin/sh
|
|
|
|
cd /overleaf/services/track-changes && node scripts/flush_all.js >> /var/log/sharelatex/track-changes.log 2>&1
|
|
|
|
EXIT_CODE="$?"
|
|
if [ $EXIT_CODE -ne 0 ]
|
|
then
|
|
echo "track-changes/scripts/flush_all.js failed with exit code $EXIT_CODE"
|
|
fi
|
|
|
|
exit 0
|