From b67c3fabaae1923dd8a31c5f15a3be1f550ff0ad Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Thu, 2 Feb 2023 16:12:52 +0100 Subject: [PATCH] Merge pull request #11628 from overleaf/msm-history-migration-tmp-path [CE] move history migration paths to `tmp` GitOrigin-RevId: e24e1d3d7f3a26fa2f4db9c9abd262745f9e7778 --- server-ce/config/settings.js | 4 ++-- server-ce/init_scripts/00_make_sharelatex_data_dirs.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server-ce/config/settings.js b/server-ce/config/settings.js index 1ff5d5f200..ab4c5961c7 100644 --- a/server-ce/config/settings.js +++ b/server-ce/config/settings.js @@ -205,14 +205,14 @@ const settings = { dumpFolder: Path.join(TMP_DIR, 'dumpFolder'), // Where to write uploads before they are processed uploadFolder: Path.join(TMP_DIR, 'uploads'), + // Where to write intermediate file for full project history migration + projectHistories: Path.join(TMP_DIR, 'projectHistories'), // Where to write the project to disk before running LaTeX on it compilesDir: Path.join(DATA_DIR, 'compiles'), // Where to cache downloaded URLs for the CLSI clsiCacheDir: Path.join(DATA_DIR, 'cache'), // Where to write the output files to disk after running LaTeX outputDir: Path.join(DATA_DIR, 'output'), - // Where to write intermediate file for full project history migration - projectHistories: Path.join(DATA_DIR, 'projectHistories'), }, // Server Config diff --git a/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh b/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh index 2f8d49b979..848bf80d9e 100755 --- a/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh +++ b/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh @@ -22,8 +22,8 @@ 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/data/projectHistories -chown www-data:www-data /var/lib/sharelatex/data/projectHistories +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