Merge pull request #20698 from overleaf/jpa-texlive-check-pro

[web] exit early from check-texlive-images when running in CE

GitOrigin-RevId: 7266203715b24ea957662647a90638e9198bc6c1
This commit is contained in:
Jakob Ackermann
2024-09-30 10:18:46 +02:00
committed by Copybot
parent 35728d7681
commit 1c30f17042
2 changed files with 24 additions and 0 deletions

View File

@@ -21,6 +21,13 @@ async function readImagesInUse() {
return images
}
function checkIsServerPro() {
if (process.env.OVERLEAF_IS_SERVER_PRO !== 'true') {
console.log('Running Overleaf Community Edition, skipping TexLive checks')
process.exit(0)
}
}
function checkSandboxedCompilesAreEnabled() {
if (process.env.SANDBOXED_COMPILES !== 'true') {
console.log('Sandboxed compiles disabled, skipping TexLive checks')
@@ -46,6 +53,7 @@ async function main() {
process.exit(0)
}
checkIsServerPro()
checkSandboxedCompilesAreEnabled()
checkTexLiveEnvVariablesAreProvided()