overleaf/server-ce/init_scripts/100_make_sharelatex_data_dirs.sh

39 lines
1.1 KiB
Bash
Raw Normal View History

2015-02-06 12:01:50 -05:00
#!/bin/sh
set -e
mkdir -p /var/lib/overleaf/data
chown www-data:www-data /var/lib/overleaf/data
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/data/user_files
chown www-data:www-data /var/lib/overleaf/data/user_files
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/data/compiles
chown www-data:www-data /var/lib/overleaf/data/compiles
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/data/output
chown www-data:www-data /var/lib/overleaf/data/output
mkdir -p /var/lib/overleaf/data/cache
chown www-data:www-data /var/lib/overleaf/data/cache
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/data/template_files
chown www-data:www-data /var/lib/overleaf/data/template_files
mkdir -p /var/lib/overleaf/data/history
chown www-data:www-data /var/lib/overleaf/data/history
mkdir -p /var/lib/overleaf/tmp/projectHistories
chown www-data:www-data /var/lib/overleaf/tmp/projectHistories
mkdir -p /var/lib/overleaf/tmp/dumpFolder
chown www-data:www-data /var/lib/overleaf/tmp/dumpFolder
mkdir -p /var/lib/overleaf/tmp
chown www-data:www-data /var/lib/overleaf/tmp
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/tmp/uploads
chown www-data:www-data /var/lib/overleaf/tmp/uploads
2015-02-06 12:01:50 -05:00
mkdir -p /var/lib/overleaf/tmp/dumpFolder
chown www-data:www-data /var/lib/overleaf/tmp/dumpFolder