From f0bd9941ddd06c0848d4f3323fc04630bf513bf2 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 16 Jul 2021 15:31:53 +0100 Subject: [PATCH] [misc] bring back old schema of revision.txt - store in /var/www/revision.txt - prefix each line with the services directory --- server-ce/Dockerfile | 2 +- server-ce/genScript.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server-ce/Dockerfile b/server-ce/Dockerfile index e967cef81c..c5ce81ef24 100644 --- a/server-ce/Dockerfile +++ b/server-ce/Dockerfile @@ -18,7 +18,7 @@ RUN node genScript checkout | bash \ \ # Store the revision for each service # --------------------------------------------- -&& node genScript revisions | bash > revisions.txt \ +&& node genScript revisions | bash > /var/www/revisions.txt \ \ # Cleanup the git history # ------------------- diff --git a/server-ce/genScript.js b/server-ce/genScript.js index 54e946bdeb..e8f61f2ba2 100644 --- a/server-ce/genScript.js +++ b/server-ce/genScript.js @@ -12,6 +12,7 @@ switch (process.argv.pop()) { break case 'revisions': for (const service of services) { + console.log(`echo -n /var/www/sharelatex/${service.name},`) console.log(`git -C ${service.name} rev-parse HEAD`) } break