overleaf/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh
Miguel Serrano b67c3fabaa Merge pull request #11628 from overleaf/msm-history-migration-tmp-path
[CE] move history migration paths to `tmp`

GitOrigin-RevId: e24e1d3d7f3a26fa2f4db9c9abd262745f9e7778
2023-02-02 18:23:16 +00:00

38 lines
1.2 KiB
Bash
Executable file

#!/bin/sh
set -e
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/output
chown www-data:www-data /var/lib/sharelatex/data/output
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/data/history
chown www-data:www-data /var/lib/sharelatex/data/history
mkdir -p /var/lib/sharelatex/tmp/projectHistories
chown www-data:www-data /var/lib/sharelatex/tmp/projectHistories
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