mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 17:23:48 -05:00
9ee92daea3
Use the synctex distributed with TeX Live GitOrigin-RevId: 5a133f21f48fd1e217ab463e8cb2a5cdec8be1af
16 lines
493 B
Bash
Executable file
16 lines
493 B
Bash
Executable file
#!/bin/sh
|
|
|
|
docker --version >&2
|
|
|
|
# add the node user to the docker group on the host
|
|
DOCKER_GROUP=$(stat -c '%g' /var/run/docker.sock)
|
|
groupadd --non-unique --gid ${DOCKER_GROUP} dockeronhost
|
|
usermod -aG dockeronhost node
|
|
|
|
# compatibility: initial volume setup
|
|
mkdir -p /app/cache && chown node:node /app/cache
|
|
mkdir -p /app/compiles && chown node:node /app/compiles
|
|
mkdir -p /app/db && chown node:node /app/db
|
|
mkdir -p /app/output && chown node:node /app/output
|
|
|
|
exec runuser -u node -- "$@"
|