install_deps.sh 725 B

123456789101112131415161718192021222324
  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. npm run webpack:production & WEBPACK=$!
  6. echo "Waiting for lint, format, translations and minify to finish"
  7. wait $LINT && echo "Lint complete" || exit 1
  8. wait $FORMAT && echo "Format complete" || exit 1
  9. wait $TRANSLATIONS && echo "Translations install complete" || exit 1
  10. wait $WEBPACK && echo "Webpack complete" || exit 1
  11. chmod -R 0755 /app/public
  12. chown -R node:node /app/public
  13. set -B
  14. rm -rf /app/data
  15. mkdir -p /app/data/{dumpFolder,logs,pdf,uploads,zippedProjects}
  16. chmod -R 0755 /app/data/
  17. chown -R node:node /app/data/