install_deps.sh 809 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. make --no-print-directory format & FORMAT=$!
  3. make --no-print-directory lint & LINT=$!
  4. npm install git+https://github.com/sharelatex/translations-sharelatex.git#master & TRANSLATIONS=$!
  5. # CSS
  6. make minify & MINIFY=$!
  7. # JS
  8. npm run webpack:production & WEBPACK=$!
  9. echo "Waiting for lint, format, translations and minify to finish"
  10. wait $LINT && echo "Lint complete" || exit 1
  11. wait $FORMAT && echo "Format complete" || exit 1
  12. wait $TRANSLATIONS && echo "Translations install complete" || exit 1
  13. wait $MINIFY && echo "Minify complete" || exit 1
  14. wait $WEBPACK && echo "Webpack complete" || exit 1
  15. chmod -R 0755 /app/public
  16. chown -R node:node /app/public
  17. set -B
  18. rm -rf /app/data
  19. mkdir -p /app/data/{dumpFolder,logs,pdf,uploads,zippedProjects}
  20. chmod -R 0755 /app/data/
  21. chown -R node:node /app/data/