run as www-data

This commit is contained in:
Henry Oswald 2016-05-27 12:55:18 +01:00
parent 9646654c48
commit ab61d05e4a
11 changed files with 13 additions and 13 deletions

View file

@ -25,11 +25,11 @@ RUN npm install -g grunt-cli
# Set up sharelatex user and home directory # Set up sharelatex user and home directory
RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharelatex; \ RUN adduser --system --group --home /var/www/sharelatex --no-create-home sharelatex; \
mkdir -p /var/lib/sharelatex; \ mkdir -p /var/lib/sharelatex; \
chown sharelatex:sharelatex /var/lib/sharelatex; \ chown www-data:www-data /var/lib/sharelatex; \
mkdir -p /var/log/sharelatex; \ mkdir -p /var/log/sharelatex; \
chown sharelatex:sharelatex /var/log/sharelatex; \ chown www-data:www-data /var/log/sharelatex; \
mkdir -p /var/lib/sharelatex/data/template_files; \ mkdir -p /var/lib/sharelatex/data/template_files; \
chown sharelatex:sharelatex /var/lib/sharelatex/data/template_files; chown www-data:www-data /var/lib/sharelatex/data/template_files;
# Install ShareLaTeX # Install ShareLaTeX

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/chat/app.js >> /var/log/sharelatex/chat.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/chat/app.js >> /var/log/sharelatex/chat.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/clsi/app.js >> /var/log/sharelatex/clsi.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/clsi/app.js >> /var/log/sharelatex/clsi.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/docstore/app.js >> /var/log/sharelatex/docstore.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/docstore/app.js >> /var/log/sharelatex/docstore.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/document-updater/app.js >> /var/log/sharelatex/document-updater.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/document-updater/app.js >> /var/log/sharelatex/document-updater.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/filestore/app.js >> /var/log/sharelatex/filestore.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/filestore/app.js >> /var/log/sharelatex/filestore.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/real-time/app.js >> /var/log/sharelatex/real-time.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/real-time/app.js >> /var/log/sharelatex/real-time.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/spelling/app.js >> /var/log/sharelatex/spelling.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/spelling/app.js >> /var/log/sharelatex/spelling.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/tags/app.js >> /var/log/sharelatex/tags.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/tags/app.js >> /var/log/sharelatex/tags.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/track-changes/app.js >> /var/log/sharelatex/track-changes.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/track-changes/app.js >> /var/log/sharelatex/track-changes.log 2>&1

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee export SHARELATEX_CONFIG=/etc/sharelatex/settings.coffee
exec /sbin/setuser sharelatex /usr/bin/node /var/www/sharelatex/web/app.js >> /var/log/sharelatex/web.log 2>&1 exec /sbin/setuser www-data /usr/bin/node /var/www/sharelatex/web/app.js >> /var/log/sharelatex/web.log 2>&1