mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 08:33:33 -05:00
909bb99b9f
* [CE/SP] Flush redis on `docker stop` * Extracted `limit` to variable Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> * Increased logging --------- Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com> GitOrigin-RevId: 4bcb4e70988337369acca0e80f243609bd6323ed
11 lines
261 B
Bash
Executable file
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
|