2018-03-23 16:36:41 +00:00
|
|
|
#!/bin/sh
|
2020-01-31 14:45:26 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2018-03-23 17:06:31 +00:00
|
|
|
apt-get update
|
|
|
|
|
2023-05-08 11:56:38 +00:00
|
|
|
apt-get install ghostscript imagemagick optipng iproute2 --yes
|
2020-01-31 14:45:26 +00:00
|
|
|
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2022-04-04 14:31:50 +00:00
|
|
|
|
|
|
|
# Allow ImageMagick to process PDF files. Filestore does pdf to image
|
|
|
|
# conversion for the templates service.
|
|
|
|
patch /etc/ImageMagick-6/policy.xml <<EOF
|
|
|
|
--- old.xml 2022-03-23 09:16:03.985433900 -0400
|
|
|
|
+++ new.xml 2022-03-23 09:16:18.625471992 -0400
|
|
|
|
@@ -91,6 +91,5 @@
|
|
|
|
<policy domain="coder" rights="none" pattern="PS2" />
|
|
|
|
<policy domain="coder" rights="none" pattern="PS3" />
|
|
|
|
<policy domain="coder" rights="none" pattern="EPS" />
|
|
|
|
- <policy domain="coder" rights="none" pattern="PDF" />
|
|
|
|
<policy domain="coder" rights="none" pattern="XPS" />
|
|
|
|
</policymap>
|
|
|
|
EOF
|