From d069da46aeb6af1aa91ee5daf8e664c173ad769b Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Mon, 31 Jan 2022 09:00:15 -0500 Subject: [PATCH] Merge pull request #6541 from overleaf/ms-em-server-ce-image-selector Never show the TeX Live image selector in CE GitOrigin-RevId: e41724a1c7cf089c214aa1cd6584035f20281576 --- server-ce/settings.js | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/server-ce/settings.js b/server-ce/settings.js index 617b2777bc..06564413b0 100644 --- a/server-ce/settings.js +++ b/server-ce/settings.js @@ -12,7 +12,7 @@ * DS207: Consider shorter variations of null checks * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md */ -let allTexLiveDockerImageNames, allTexLiveDockerImages, redisConfig, siteUrl +let redisConfig, siteUrl let e const Path = require('path') @@ -726,28 +726,6 @@ if (process.env.SHARELATEX_ELASTICSEARCH_URL != null) { } } -// TeX Live Images -// ----------- -if (process.env.ALL_TEX_LIVE_DOCKER_IMAGES != null) { - allTexLiveDockerImages = process.env.ALL_TEX_LIVE_DOCKER_IMAGES.split(',') -} -if (process.env.ALL_TEX_LIVE_DOCKER_IMAGE_NAMES != null) { - allTexLiveDockerImageNames = - process.env.ALL_TEX_LIVE_DOCKER_IMAGE_NAMES.split(',') -} -if (allTexLiveDockerImages != null) { - settings.allowedImageNames = [] - for (let index = 0; index < allTexLiveDockerImages.length; index++) { - const fullImageName = allTexLiveDockerImages[index] - const imageName = Path.basename(fullImageName) - const imageDesc = - allTexLiveDockerImageNames != null - ? allTexLiveDockerImageNames[index] - : imageName - settings.allowedImageNames.push({ imageName, imageDesc }) - } -} - // With lots of incoming and outgoing HTTP connections to different services, // sometimes long running, it is a good idea to increase the default number // of sockets that Node will hold open.