overleaf/services/clsi/entrypoint.sh

22 lines
479 B
Bash
Raw Normal View History

2018-03-06 05:59:40 -05:00
#!/bin/sh
echo "Changing permissions of /var/run/docker.sock for sibling containers"
ls -al /var/run/docker.sock
docker --version
cat /etc/passwd
usermod -aG docker node
2018-03-06 05:59:40 -05:00
chown root:docker /var/run/docker.sock
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
./bin/install_texlive_gce.sh
2018-03-19 10:10:45 -04:00
exec runuser -u node "$@"