mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
35 lines
1.1 KiB
Bash
Executable file
35 lines
1.1 KiB
Bash
Executable file
#!/bin/sh
|
|
mkdir -p /var/lib/sharelatex/data
|
|
chown www-data:www-data /var/lib/sharelatex/data
|
|
|
|
mkdir -p /var/lib/sharelatex/data/user_files
|
|
chown www-data:www-data /var/lib/sharelatex/data/user_files
|
|
|
|
mkdir -p /var/lib/sharelatex/data/compiles
|
|
chown www-data:www-data /var/lib/sharelatex/data/compiles
|
|
|
|
mkdir -p /var/lib/sharelatex/data/cache
|
|
chown www-data:www-data /var/lib/sharelatex/data/cache
|
|
|
|
mkdir -p /var/lib/sharelatex/data/template_files
|
|
chown www-data:www-data /var/lib/sharelatex/data/template_files
|
|
|
|
mkdir -p /var/lib/sharelatex/tmp/dumpFolder
|
|
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder
|
|
|
|
mkdir -p /var/lib/sharelatex/tmp
|
|
chown www-data:www-data /var/lib/sharelatex/tmp
|
|
|
|
mkdir -p /var/lib/sharelatex/tmp/uploads
|
|
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
|
|
|
|
chown www-data:www-data /var/lib/sharelatex/data/db.sqlite
|