mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user