Commit d1f7a70e authored by Simon M. Haller-Seeber's avatar Simon M. Haller-Seeber
Browse files

fix for add shell-escape in comunity edition #45

parent 8da5b9af
Loading
Loading
Loading
Loading
+5 −2
Changes for ldap-overleaf-sl/Dockerfile: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,7 +13,8 @@ RUN npm install ldapts
# This variant of updateing texlive does not work
#RUN  bash -c tlmgr install scheme-full
# try this one:
#RUN apt-get update
RUN apt-get update
RUN apt-get -y install python-pygments
#RUN apt-get -y install texlive texlive-lang-german texlive-latex-extra 

# overwrite some files
@@ -29,6 +30,9 @@ RUN sed -iE "s/email@example.com/${login_text:-user}/g" /var/www/sharelatex/web/
# Collaboration settings display (share project placeholder) | edit line 146
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

# Too much changes to do inline (>10 Lines).
COPY sharelatex/settings.pug 		/var/www/sharelatex/web/app/views/user/
COPY sharelatex/navbar.pug 		/var/www/sharelatex/web/app/views/layout/
@@ -53,4 +57,3 @@ RUN wget https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbo
# reload nginx via cron for reneweing https certificates automatically
COPY nginx/nginx-reload.sh  /etc/cron.weekly/
RUN chmod 0744 /etc/cron.weekly/nginx-reload.sh