overleaf/server-ce/init_preshutdown_scripts/02_flush_project_history
Jakob Ackermann 05f4deeb34 Merge pull request #12325 from overleaf/jpa-fix-shutdown-order
[server-ce] fix shutdown sequence: flush document-updater before history

GitOrigin-RevId: b46d25744cb18600e93b90e0ace5d4e1e563ebd2
2023-03-22 09:05:26 +00:00

11 lines
261 B
Bash
Executable file

#!/bin/sh
cd /overleaf/services/project-history && node scripts/flush_all.js >> /var/log/sharelatex/project-history.log 2>&1
EXIT_CODE="$?"
if [ $EXIT_CODE -ne 0 ]
then
echo "project-history/scripts/flush_all.js failed with exit code $EXIT_CODE"
fi
exit 0