2015-02-06 12:01:50 -05:00
|
|
|
#!/bin/sh
|
2020-02-13 07:33:56 -05:00
|
|
|
set -e
|
|
|
|
|
2015-02-06 12:01:50 -05:00
|
|
|
mkdir -p /var/lib/sharelatex/data
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/data
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
mkdir -p /var/lib/sharelatex/data/user_files
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/data/user_files
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
mkdir -p /var/lib/sharelatex/data/compiles
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/data/compiles
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
mkdir -p /var/lib/sharelatex/data/cache
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/data/cache
|
2015-02-06 12:01:50 -05:00
|
|
|
|
2016-07-14 11:50:11 -04:00
|
|
|
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
|
2016-06-30 11:47:23 -04:00
|
|
|
|
2015-02-06 12:01:50 -05:00
|
|
|
mkdir -p /var/lib/sharelatex/tmp
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/tmp
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
mkdir -p /var/lib/sharelatex/tmp/uploads
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/tmp/uploads
|
2015-02-06 12:01:50 -05:00
|
|
|
|
|
|
|
mkdir -p /var/lib/sharelatex/tmp/dumpFolder
|
2016-05-27 10:46:51 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder
|
|
|
|
|
2016-06-23 18:07:30 -04:00
|
|
|
if [ ! -e "/var/lib/sharelatex/data/db.sqlite" ]; then
|
|
|
|
touch /var/lib/sharelatex/data/db.sqlite
|
|
|
|
fi
|
2016-05-27 10:46:51 -04:00
|
|
|
|
2016-06-23 18:07:30 -04:00
|
|
|
chown www-data:www-data /var/lib/sharelatex/data/db.sqlite
|