overleaf/services/clsi/entrypoint.sh

24 lines
494 B
Bash
Raw Normal View History

2018-03-06 05:59:40 -05:00
#!/bin/sh
docker --version >&2
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
usermod -aG dockeronhost node
mkdir -p /app/cache
2018-03-19 10:10:45 -04:00
chown -R node:node /app/cache
mkdir -p /app/compiles
2018-03-19 10:10:45 -04:00
chown -R node:node /app/compiles
2018-03-16 13:10:56 -04:00
chown -R node:node /app/bin/synctex
mkdir -p /app/test/acceptance/fixtures/tmp/
chown -R node:node /app
2018-08-22 19:10:06 -04:00
chown -R node:node /app/bin
cp /app/bin/synctex /app/bin/synctex-mount/synctex
exec runuser -u node -- "$@"