Skip to content
Snippets Groups Projects

Disable shell-escape

Open Luca requested to merge disable-shell-escape into main
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
+ 0
4
@@ -38,10 +38,6 @@ RUN sed -iE "s/email@example.com/${login_text:-user}/g" /var/www/sharelatex/web/
@@ -38,10 +38,6 @@ RUN sed -iE "s/email@example.com/${login_text:-user}/g" /var/www/sharelatex/web/
# Obsolete with Overleaf 3.0
# Obsolete with Overleaf 3.0
# RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /var/www/sharelatex/web/app/views/project/editor/share.pug
# RUN sed -iE "s%placeholder=.*$%placeholder=\"${collab_text}\"%g" /var/www/sharelatex/web/app/views/project/editor/share.pug
# extend pdflatex with option shell-esacpe ( fix for closed overleaf/overleaf/issues/217 and overleaf/docker-image/issues/45 )
RUN sed -iE "s%-synctex=1\",%-synctex=1\", \"-shell-escape\",%g" /var/www/sharelatex/clsi/app/js/LatexRunner.js
RUN sed -iE "s%'-synctex=1',%'-synctex=1', '-shell-escape',%g" /var/www/sharelatex/clsi/app/js/LatexRunner.js
# keep project cache around for 1h maximum
# keep project cache around for 1h maximum
RUN sed -iE "s%project_cache_length_ms:.*%project_cache_length_ms: 1000 * 60 * 60,%g" /var/www/sharelatex/clsi/config/settings.defaults.js
RUN sed -iE "s%project_cache_length_ms:.*%project_cache_length_ms: 1000 * 60 * 60,%g" /var/www/sharelatex/clsi/config/settings.defaults.js
Loading