mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 15:32:20 +00:00
d0cd02d0ac
Add proper environment in CE/Server Pro preshutdown scripts GitOrigin-RevId: 84ec76de67e91a4acc1f326a701ebb13a3f1322f
14 lines
315 B
Bash
Executable file
14 lines
315 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"
|
|
fi
|
|
|
|
exit 0
|