mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-27 17:00:06 +02:00

* [misc] update build scripts * [misc] make shellcheck happy GitOrigin-RevId: 343655fda54aa7e835dd666dcd4218d61c58fd09
14 lines
625 B
Bash
Executable file
14 lines
625 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# 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 /overleaf/services/clsi/cache && chown node:node /overleaf/services/clsi/cache
|
|
mkdir -p /overleaf/services/clsi/compiles && chown node:node /overleaf/services/clsi/compiles
|
|
mkdir -p /overleaf/services/clsi/db && chown node:node /overleaf/services/clsi/db
|
|
mkdir -p /overleaf/services/clsi/output && chown node:node /overleaf/services/clsi/output
|
|
|
|
exec runuser -u node -- "$@"
|