From c3889f88568510984a113ce4941a991307c77270 Mon Sep 17 00:00:00 2001 From: Miguel Serrano Date: Mon, 30 Jan 2023 12:27:42 +0100 Subject: [PATCH] Merge pull request #11528 from overleaf/msm-history-data-ce [CE] Add `path.projectHistories` to `settings.js` GitOrigin-RevId: 97c249153baed793fff0fd564a9a75efdd6b2d32 --- server-ce/config/settings.js | 2 ++ server-ce/init_scripts/00_make_sharelatex_data_dirs.sh | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/server-ce/config/settings.js b/server-ce/config/settings.js index 6b78333b18..1ff5d5f200 100644 --- a/server-ce/config/settings.js +++ b/server-ce/config/settings.js @@ -211,6 +211,8 @@ const settings = { 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 f606eff32c..2f8d49b979 100755 --- a/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh +++ b/server-ce/init_scripts/00_make_sharelatex_data_dirs.sh @@ -19,6 +19,12 @@ 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/data/projectHistories +chown www-data:www-data /var/lib/sharelatex/data/projectHistories + mkdir -p /var/lib/sharelatex/tmp/dumpFolder chown www-data:www-data /var/lib/sharelatex/tmp/dumpFolder