[misc] narrow down the rw accessible directories for the run user (#119)

This commit is contained in:
Jakob Ackermann 2020-01-29 12:14:32 +01:00 committed by GitHub
parent 6a5f1588cc
commit 16ca8f25c4
2 changed files with 1 additions and 8 deletions

View file

@ -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

View file

@ -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