mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] narrow down the rw accessible directories for the run user (#119)
This commit is contained in:
parent
6a5f1588cc
commit
16ca8f25c4
2 changed files with 1 additions and 8 deletions
|
@ -49,11 +49,6 @@ RUN bash -c 'cd /var/www/sharelatex && source ./bin/compile-services'
|
|||
RUN ln -s /var/www/sharelatex/clsi/bin/synctex /opt/synctex
|
||||
|
||||
|
||||
# Change application ownership to www-data
|
||||
# ----------------------------------------
|
||||
RUN chown -R www-data:www-data /var/www/sharelatex;
|
||||
|
||||
|
||||
# Copy runit service startup scripts to its location
|
||||
# --------------------------------------------------
|
||||
ADD ${baseDir}/runit /etc/service
|
||||
|
|
|
@ -26,8 +26,6 @@ chown www-data:www-data /var/lib/sharelatex/tmp/uploads
|
|||
mkdir -p /var/lib/sharelatex/tmp/dumpFolder
|
||||
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder
|
||||
|
||||
chown www-data:www-data /var/www/
|
||||
|
||||
if [ ! -e "/var/lib/sharelatex/data/db.sqlite" ]; then
|
||||
touch /var/lib/sharelatex/data/db.sqlite
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue