overleaf/services/web/install_deps.sh
Henry Oswald 991cbf3fee Merge pull request #1636 from sharelatex/ho-fail-lint
throw error in bash quickly on error

GitOrigin-RevId: 03df23aff25583f3af122f9a643c8faef64c5c46
2019-03-18 15:37:03 +00:00

19 lines
422 B
Bash

#!/bin/bash
set -e
WEBPACK_ENV=production make minify &
make --no-print-directory format &
make --no-print-directory lint &
npm install git+https://github.com/sharelatex/translations-sharelatex.git#master &
wait -n
chmod -R 0755 /app/public
chown -R node:node /app/public
set -B
rm -rf /app/data
mkdir -p /app/data/{dumpFolder,logs,pdf,uploads,zippedProjects}
chmod -R 0755 /app/data/
chown -R node:node /app/data/