mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
run everything as www-data
This commit is contained in:
parent
59ce10e45f
commit
c0090fcc22
2 changed files with 11 additions and 8 deletions
|
@ -1,21 +1,24 @@
|
|||
#!/bin/sh
|
||||
mkdir -p /var/lib/sharelatex/data
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/data
|
||||
chown www-data:www-data /var/lib/sharelatex/data
|
||||
|
||||
mkdir -p /var/lib/sharelatex/data/user_files
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/data/user_files
|
||||
chown www-data:www-data /var/lib/sharelatex/data/user_files
|
||||
|
||||
mkdir -p /var/lib/sharelatex/data/compiles
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/data/compiles
|
||||
chown www-data:www-data /var/lib/sharelatex/data/compiles
|
||||
|
||||
mkdir -p /var/lib/sharelatex/data/cache
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/data/cache
|
||||
chown www-data:www-data /var/lib/sharelatex/data/cache
|
||||
|
||||
mkdir -p /var/lib/sharelatex/tmp
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/tmp
|
||||
chown www-data:www-data /var/lib/sharelatex/tmp
|
||||
|
||||
mkdir -p /var/lib/sharelatex/tmp/uploads
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/tmp/uploads
|
||||
chown www-data:www-data /var/lib/sharelatex/tmp/uploads
|
||||
|
||||
mkdir -p /var/lib/sharelatex/tmp/dumpFolder
|
||||
chown sharelatex:sharelatex /var/lib/sharelatex/tmp/dumpFolder
|
||||
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder
|
||||
|
||||
|
||||
chown www-data:www-data /var/lib/sharelatex/data/db.sqlite
|
|
@ -497,7 +497,7 @@ if process.env["DOCKER_IN_DOCKER"] == "true"
|
|||
image: process.env["TEX_LIVE_DOCKER_IMAGE"]
|
||||
env:
|
||||
PATH: process.env["COMPILER_PATH"] or "/usr/local/texlive/2015/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
user: "tex"
|
||||
user: "www-data"
|
||||
|
||||
|
||||
# Templates
|
||||
|
|
Loading…
Reference in a new issue