mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 16:43:23 -05:00
34 lines
817 B
Diff
34 lines
817 B
Diff
|
--- 00_close_site
|
||
|
+++ 00_close_site
|
||
|
@@ -1,5 +1,8 @@
|
||
|
#!/bin/sh
|
||
|
|
||
|
+. /etc/container_environment.sh
|
||
|
+. /etc/sharelatex/env.sh
|
||
|
+
|
||
|
SITE_MAINTENANCE_FILE_BAK="$SITE_MAINTENANCE_FILE.bak.shutdown"
|
||
|
|
||
|
mv "${SITE_MAINTENANCE_FILE}" "${SITE_MAINTENANCE_FILE_BAK}"
|
||
|
--- 01_flush_document_updater
|
||
|
+++ 01_flush_document_updater
|
||
|
@@ -1,5 +1,8 @@
|
||
|
#!/bin/sh
|
||
|
|
||
|
+. /etc/container_environment.sh
|
||
|
+. /etc/sharelatex/env.sh
|
||
|
+
|
||
|
cd /overleaf/services/document-updater && node scripts/flush_all.js >> /var/log/sharelatex/document-updater.log 2>&1
|
||
|
|
||
|
EXIT_CODE="$?"
|
||
|
--- 02_flush_project_history
|
||
|
+++ 02_flush_project_history
|
||
|
@@ -1,5 +1,8 @@
|
||
|
#!/bin/sh
|
||
|
|
||
|
+. /etc/container_environment.sh
|
||
|
+. /etc/sharelatex/env.sh
|
||
|
+
|
||
|
cd /overleaf/services/project-history && node scripts/flush_all.js >> /var/log/sharelatex/project-history.log 2>&1
|
||
|
|
||
|
EXIT_CODE="$?"
|