mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 07:21:51 +00:00
e36de5a62d
[server-ce] improve shutdown procedure GitOrigin-RevId: 5a99868d17f597c366e42625cd39f05146dcb682
15 lines
324 B
Bash
Executable file
15 lines
324 B
Bash
Executable file
#!/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="$?"
|
|
if [ $EXIT_CODE -ne 0 ]
|
|
then
|
|
echo "project-history/scripts/flush_all.js failed with exit code $EXIT_CODE"
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|