first commit
This commit is contained in:
15
server-ce/init_preshutdown_scripts/01_flush_document_updater
Executable file
15
server-ce/init_preshutdown_scripts/01_flush_document_updater
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/container_environment.sh
|
||||
. /etc/overleaf/env.sh
|
||||
|
||||
cd /overleaf/services/document-updater && node scripts/flush_all.js >> /var/log/overleaf/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"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user