mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 08:21:48 -05:00
21 lines
867 B
Bash
21 lines
867 B
Bash
#!/bin/sh
|
|
sudo adduser --system --group --home /var/www/sharelatex --no-create-home sharelatex
|
|
|
|
mkdir -p /var/log/sharelatex
|
|
chown sharelatex:sharelatex /var/log/sharelatex
|
|
mkdir -p /var/data/sharelatex/user_files
|
|
chown sharelatex:sharelatex /var/data/sharelatex/user_files
|
|
mkdir -p /var/data/sharelatex/uploads
|
|
chown sharelatex:sharelatex /var/data/sharelatex/uploads
|
|
mkdir -p /var/data/sharelatex/compiles
|
|
chown sharelatex:sharelatex /var/data/sharelatex/compiles
|
|
mkdir -p /var/data/sharelatex/cache
|
|
chown sharelatex:sharelatex /var/data/sharelatex/cache
|
|
mkdir -p /var/data/sharelatex/dump
|
|
chown sharelatex:sharelatex /var/data/sharelatex/dump
|
|
service sharelatex-web restart
|
|
service sharelatex-document-updater restart
|
|
service sharelatex-clsi restart
|
|
service sharelatex-filestore restart
|
|
service sharelatex-track-changes restart
|
|
service sharelatex-docstore restart
|