install_deps.sh 738 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. set -ex
  3. apt-get update
  4. apt-get install -y \
  5. poppler-utils \
  6. ghostscript \
  7. rm -rf /var/lib/apt/lists/*
  8. # Allow ImageMagick to process PDF files. This is for tests only, but since we
  9. # use the production images for tests, this will apply to production as well.
  10. patch /etc/ImageMagick-6/policy.xml <<EOF
  11. --- old.xml 2022-03-23 09:16:03.985433900 -0400
  12. +++ new.xml 2022-03-23 09:16:18.625471992 -0400
  13. @@ -91,6 +91,5 @@
  14. <policy domain="coder" rights="none" pattern="PS2" />
  15. <policy domain="coder" rights="none" pattern="PS3" />
  16. <policy domain="coder" rights="none" pattern="EPS" />
  17. - <policy domain="coder" rights="none" pattern="PDF" />
  18. <policy domain="coder" rights="none" pattern="XPS" />
  19. </policymap>
  20. EOF