02_flush_project_history 347 B

123456789101112131415
  1. #!/bin/sh
  2. . /etc/container_environment.sh
  3. . /etc/overleaf/env.sh
  4. cd /overleaf/services/project-history && /sbin/setuser www-data node scripts/flush_all.js >> /var/log/overleaf/project-history.log 2>&1
  5. EXIT_CODE="$?"
  6. if [ $EXIT_CODE -ne 0 ]
  7. then
  8. echo "project-history/scripts/flush_all.js failed with exit code $EXIT_CODE"
  9. exit 1
  10. fi
  11. exit 0