mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 20:00:49 +00:00
5b1481fc12
Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
25 lines
586 B
Bash
Executable file
25 lines
586 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
|
|
|
|
./bin/install_texlive_gce.sh
|
|
exec runuser -u node -- "$@"
|