Skip to content

Commit

Permalink
Fix PDF generation: force run udpmap-sys
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Fröhle committed Aug 8, 2021
1 parent eeee470 commit e48dd42
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ RUN env \
ENV SETUP=0

# Addons
RUN if [ "${OPT_PDF}" == "1" ]; then apk add --no-cache --allow-untrusted texlive texmf-dist-latexextra texmf-dist-fontsextra ; fi
RUN if [ "${OPT_PDF}" == "1" ]; then \
apk add --no-cache --allow-untrusted texlive texmf-dist-latexextra texmf-dist-fontsextra \
; \
# Force to generate pdftex.map and psfonts.map #249 \
# https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/249 \
updmap-sys --force > /dev/null 2>&1 > /dev/null ; \
fi

VOLUME [ "/opt/database", "/var/lib/openvas/plugins", "/var/lib/gvm", "/etc/ssh" ]

Expand Down
3 changes: 3 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export OPT_PDF=${OPT_PDF:-0}

if [ "${OPT_PDF}" == "1" ]; then
apk add --no-cache --allow-untrusted texlive texmf-dist-latexextra texmf-dist-fontsextra
# Force to generate pdftex.map and psfonts.map #249
# https://github.com/Secure-Compliance-Solutions-LLC/GVM-Docker/issues/249
updmap-sys --force >/dev/null 2>&1 >/dev/null
fi

mkdir -p /var/lib/gvm
Expand Down

0 comments on commit e48dd42

Please sign in to comment.