mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
01c46e9e94
we shouldn't have needed this for a while, I think it is a cause of startup delay, however this should have stopped other missing texlive images in the past which is strange
24 lines
557 B
Bash
Executable file
24 lines
557 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "Changing permissions of /var/run/docker.sock for sibling containers"
|
|
ls -al /var/run/docker.sock
|
|
docker --version
|
|
cat /etc/passwd
|
|
|
|
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
|
|
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
|
|
usermod -aG dockeronhost node
|
|
|
|
mkdir -p /app/cache
|
|
chown -R node:node /app/cache
|
|
|
|
mkdir -p /app/compiles
|
|
chown -R node:node /app/compiles
|
|
|
|
chown -R node:node /app/bin/synctex
|
|
mkdir -p /app/test/acceptance/fixtures/tmp/
|
|
chown -R node:node /app
|
|
|
|
chown -R node:node /app/bin
|
|
|
|
exec runuser -u node -- "$@"
|