mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
3235119302
Upgrade to Node 16 GitOrigin-RevId: 3db1ae57ffb02f8a2b9012ffbb3efecfc01d2b04
23 lines
689 B
Bash
Executable file
23 lines
689 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -ex
|
|
|
|
apt-get update
|
|
|
|
apt-get install ghostscript imagemagick optipng --yes
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# 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
|