mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-03 01:14:32 -05:00
31 lines
1.3 KiB
Bash
31 lines
1.3 KiB
Bash
#!/bin/sh
|
|
# Create random secret keys
|
|
sed -i "s/CRYPTO_RANDOM/$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 64 | head -n 1)/" /etc/sharelatex/settings.coffee
|
|
sed -i "s/CRYPTO_RANDOM/$(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 64 | head -n 1)/" /etc/sharelatex/settings.coffee
|
|
|
|
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/lib/sharelatex
|
|
chown sharelatex:sharelatex /var/lib/sharelatex
|
|
mkdir -p /var/lib/sharelatex/data/user_files
|
|
chown sharelatex:sharelatex /var/lib/sharelatex/data/user_files
|
|
mkdir -p /var/lib/sharelatex/tmp/uploads
|
|
chown sharelatex:sharelatex /var/lib/sharelatex/tmp/uploads
|
|
mkdir -p /var/lib/sharelatex/data/compiles
|
|
chown sharelatex:sharelatex /var/lib/sharelatex/data/compiles
|
|
mkdir -p /var/lib/sharelatex/data/cache
|
|
chown sharelatex:sharelatex /var/lib/sharelatex/data/cache
|
|
mkdir -p /var/lib/sharelatex/tmp/dumpFolder
|
|
chown sharelatex:sharelatex /var/lib/sharelatex/tmp/dumpFolder
|
|
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
|
|
service sharelatex-chat restart
|
|
service sharelatex-tags restart
|
|
service sharelatex-spelling restart
|