mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
[server-ce] fix shutdown sequence: flush document-updater before history GitOrigin-RevId: b46d25744cb18600e93b90e0ace5d4e1e563ebd2
12 lines
264 B
Bash
Executable File
12 lines
264 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd /overleaf/services/document-updater && node scripts/flush_all.js >> /var/log/sharelatex/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
|